Thanks for answering.
The problem here is that the methods of the web service class also maintains
a reference to the url, like in this web method:
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/MapSolverService/Close",
RequestNamespace="http://localhost/MapSolverService/",
ResponseNamespace="http://localhost/MapSolverService/",
Use=System.Web.Services.Description.SoapBindingUse.Literal,
ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void Close() {
this.Invoke("Close", new object[0]);
}
So, how to change that ?
Thanks
Hi again,
U can change web service reference from static to dynamic.. Request and
Response Namespace are not required to be "localhost".. Just give a generic
name like "tempuri.org"... Change them and call your web service, and see
what is going on...
Using VS.NET, u can add a web reference.. But it is not an obligation. You
can simply implement Web Service Proxy class. If u are using primitive data
types, u can easily call it. Otherwise u must share your custom objects with
callee applications. Also, u can mark your input and output parameters as
XML serializable. Thus, would help u to call ws from different platforms..

Signature
HTH
Thanks,
Yunus Emre ALPÖZEN
BSc, MCSD.NET
> Thanks for answering.
>
[quoted text clipped - 63 lines]
>>>
>>> Thanks in advance.
DC - 01 Dec 2005 02:56 GMT
By the way, this statement:
>> The problem here is that the methods of the web service class also
>> maintains a reference to the url, like in this web method:
indicates a misunderstanding of XML namespaces. Those strings you referred
to in the generated proxy class:
>> [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://localhost/MapSolverService/Close",
>> RequestNamespace="http://localhost/MapSolverService/",
[quoted text clipped - 4 lines]
>> this.Invoke("Close", new object[0]);
>> }
Those strings beginning with http:// are not URLs associated to the
webservice. they are URIs used for namespaces in the XML that is handed
back and forth. they are URIs not URLs. And they are independent of the
endpoint. They could just as easily be
urn:this-is-my-request-namespace
and
urn:this-is-my-response-namespace-ha-ha-ha-ha-aint-it-grand
-D

Signature
-Dino
D i n o . C h i e s a AT M i c r o s o f t . c o m
> Hi again,
> U can change web service reference from static to dynamic.. Request and
[quoted text clipped - 76 lines]
>>>>
>>>> Thanks in advance.