473,511 Members | 9,983 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SOAP Address location hardcoded or dynamic

Hello

I am looking for the best architectural pattern in using the
SOAP:address location: Hardcode the real endpoint or use localhost (in
our company on an Intranet site)
From what I can see there are two patterns:


1. Code the endpoint to the WSDL
Sample:
<wsdl:service name="StockQuoteService">
<wsdl:documentation>My first service</wsdl:documentation>
<wsdl:port name="StockQuotePort" binding="tns:sbnd">
<soap:address location="http://example.com/stockquote"/>
</wsdl:port>
</wsdl:service>
This would mean that my Java or C# Client can download the WSDL and
create via tool (i.e. WSDL.exe) the class and I can directly the
service.

2. Code as endpoint always http://localhost:<port> and transform this
URL in the proxy class.
For example
<wsdl:service name="StockQuoteService">
<wsdl:documentation>My first service</wsdl:documentation>
<wsdl:port name="StockQuotePort" binding="tns:sbnd">
<soap:address location="http://localhost:8090"/>
</wsdl:port>
</wsdl:service>
I could then change the URL in the class file (or make it configurable)
by replacing this URL with the URL that is exactly needed.

Following questions arise now:
- Which is the better architectural pattern
- In case of 1. each time the server changes, the webservice proxy
class has to be recompiled because of the change of the address.
- In case of 2. Would UDDI allow me to exchange the localhost with the
current correct endpoint?
- In case of 2. Would I be able to change the endpoint programmatically
when I want use the WebService with BizTalk?

Thanks for the help!

Nov 23 '05 #1
0 3436

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
32061
by: burdeen | last post by:
I've been trying to return an array with PHP5 soap. Is this not supported? or am i doing it wrong? Seems to return on the last element in the array. In my WSDL i've defined my return type as a...
0
2233
by: Cleo | last post by:
Hi, I am trying to call a WebService Method written in Weblogic from VB.NET and I am getting the following error. I am using SOAP Caal s from VB.NET. Please find the wsdl file and my code. ...
0
1895
by: jBletsch | last post by:
I'm having a problem accessing a web service from outside our network. I think the problem is that in the Service Description it's putting the IP address in the "soap:address location" ...
0
1509
by: Oscar Thornell | last post by:
Hi, I have a web service (.NET 1.1) that is deployed into a heavily fortified area with a lot of different network segments/proxies/firewalls... The server(Win 2003) in itself is not...
0
4811
by: Jigar.Patel | last post by:
I have simple remoting server exposing following simple method. When I try to add webreference to this server in another project, it gives me following error: Custom tool error: Unable to import...
4
4339
plumpnation
by: plumpnation | last post by:
Hello one and all. I have recently been working outside of my field of expertise alot, and it is greatly distressing me. I have learned a small amount of php and actionscript, but now need to move...
20
2831
by: sethukr | last post by:
hi, i need to store a value to a particular memory location without having a variable. So, how can i access a 'memory address' without using variables?? Is it possible in C??? Plz, help...
0
2679
by: Philluminati | last post by:
I have a Perl SOAP Server which returns this SOAP Message when invoked: <?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:xsi="http:// www.w3.org/2001/XMLSchema-instance"...
0
3117
by: Default User | last post by:
I work on creating test cases for a SOAP-based set of servers, using soapUI. I received and updated set of WSDL and schema files, and when I made new tests and mock server operations, all of the...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7089
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3217
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.