473,769 Members | 3,820 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="StockQuot eService">
<wsdl:documenta tion>My first service</wsdl:documentat ion>
<wsdl:port name="StockQuot ePort" binding="tns:sb nd">
<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="StockQuot eService">
<wsdl:documenta tion>My first service</wsdl:documentat ion>
<wsdl:port name="StockQuot ePort" binding="tns:sb nd">
<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 programmaticall y
when I want use the WebService with BizTalk?

Thanks for the help!

Nov 23 '05 #1
0 3469

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

Similar topics

2
32083
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 complex type: <s:complexContent><s:restriction base="SOAP-ENC:Array"><s:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string"/></s:complexContent> Actual Output :
0
2246
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. Any help would really be appreciated. Thx
0
1911
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" <soap:address location="http://10.40.0.17/qav2/ServiceUser.asmx" /> Does anyone have a clue on how the make sure it does not use the IP. We did have this working at one time. I recall something about resending the header info. But really have no idea...
0
1538
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 protected and the web service is accessed using normal HTTP. However requests orginiating from other segments are only allowed if they are made through HTTPS. With a call to https://someaddress/someapp/someservice.asmx?wsdl the ASP.NET
0
4846
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 WebService/Schema. Unable to import binding 'MyRemoteObjectBinding' from namespace 'http://schemas.microsoft.com/clr/nsassem/RemoteServer/RemoteServer%2C%20Version%3D1.0.0.0%2C%20Culture%3Dneutral%2C%20PublicKeyToken%3Dnull'. Unable to import...
4
4352
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 into the realm of asp. I have been supplied this script in asp classic by the web service administrator as an example, but i have no idea how to use it in conjunction with a html POST form. 1. Should the form be put within the same page? ...
20
2879
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 me..
0
2701
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" xmlns:soapenc="http:// schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/ XMLSchema" soap:encodingStyle="http://schemas.xmlsoap.org/soap/ encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/...
0
3137
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 ones that had been working now returned a SOAP fault. The faults look something like: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"> <soap:Body> <soap:Fault> <soap:Code>
0
9579
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9420
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10035
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9984
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8863
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5293
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3949
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 we have to send another system
2
3556
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2811
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.