
Signature
William Stacey, MVP
http://mvp.support.microsoft.com
> Yes I'm tring the same thing and don't seem to be able to get it to work.
>
[quoted text clipped - 71 lines]
> >
> > [1] http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wse/html/gxacon
wsdltosoapclienttool.asp
Thanks for the quick reply but I get this:
If I use localhost rather than my "machine name", I get Server unavailable
please try later, where I specify localhost in the URi of the class.
However of I specify the machine name in the URis in my class and call with
localhost in the command line I get "Destination Unreachable". Which a new
one.
The new code is :
Uri addressUri = new Uri("soap://MYMACHINE/MyServiceV1");
Uri viaUri = new Uri("soap.tcp://MYMACHINE/MySoapService");
Microsoft.Web.Services2.Referral.Via via = new
Microsoft.Web.Services2.Referral.Via(viaUri);
Microsoft.Web.Services2.Addressing.Address address = new
Address(addressUri);
EndpointReference endpoint = new EndpointReference(address, via);
SoapReceivers.Add(endpoint, typeof(MySoapService));
BenW
WSE 2 SP2
C:\Program Files\Microsoft WSE\v2.0\Tools\Wsdl>wsewsdl2
soap.tcp://MYMACHINE/MySoa
pService -name soap://MYMACHINE/MyServiceV1 myproxy01.cs
Microsoft (R) WSDL to SoapClient Utility
[Microsoft (R) Web Services Enhancements, Version 2.0]
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.
An error occurred processing this WSDL. More information:
Microsoft.Web.Services2.AsynchronousOperationException: WSE101: An
asynchronous
operation raised an exception. ---> System.Net.Sockets.SocketException: No
conne
ction could be made because the target machine actively refused it
Server stack trace:
at Microsoft.Web.Services2.Messaging.SoapTcpConnection.Connect()
at Microsoft.Web.Services2.Messaging.SoapTcpConnection..ctor(Uri
remoteEndpoi
nt, SoapTcpTransportOptions options, ISoapFormatter formatter)
at Microsoft.Web.Services2.Messaging.SoapTcpTransport.GetConnection(Uri
desti
nation)
at
Microsoft.Web.Services2.Messaging.SoapTcpOutputChannel.Send(SoapEnvelope m
essage)
at
System.Runtime.Remoting.Messaging.StackBuilderSink.PrivateProcessMessage(M
ethodBase mb, Object[] args, Object server, Int32 methodPtr, Boolean
fExecuteInC
ontext, Object[]& outArgs)
at
System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMe
ssage msg, IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message
reqMsg,
Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed,
Messa
geData& msgData)
at Microsoft.Web.Services2.Messaging.SendDelegate.EndInvoke(IAsyncResult
resu
lt)
at
Microsoft.Web.Services2.Messaging.SoapOutputChannel.EndSend(IAsyncResult r
esult)
at Microsoft.Web.Services2.Messaging.SoapSender.EndSend(IAsyncResult
result)
at
Microsoft.Web.Services2.Messaging.SoapClientAsyncResult.OnSendComplete(IAs
yncResult result)
--- End of inner exception stack trace ---
at Microsoft.Web.Services2.AsyncResult.End(IAsyncResult result)
at
Microsoft.Web.Services2.Messaging.SoapClient.SendRequestResponse(String me
thodname, SoapEnvelope envelope)
at ClientGen.TcpProxy.RequestDescription(SoapEnvelope message)
at ClientGen.ClientGen.Download(String location)
at ClientGen.ClientGen.GenerateCode(String descriptionFile, String
outputFile
, XmlSchemas schemas)
at ClientGen.Class1.Main(String[] arguments)
> http://spaces.msn.com/members/staceyw/Blog/cns!1pnsZpX0fPvDxLKC6rAAhLsQ!304.entry
>
[quoted text clipped - 76 lines]
> > > [1]
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wse/html/gxacon
wsdltosoapclienttool.asp
William Stacey [MVP] - 03 Feb 2005 21:37 GMT
Use the DNS domain name that will "ping". If your running on the same host,
localhost should work unless something else is going on.

Signature
William Stacey, MVP
http://mvp.support.microsoft.com
> Thanks for the quick reply but I get this:
>
[quoted text clipped - 62 lines]
> geData& msgData)
> at
Microsoft.Web.Services2.Messaging.SendDelegate.EndInvoke(IAsyncResult
> resu
> lt)
[quoted text clipped - 17 lines]
> , XmlSchemas schemas)
> at ClientGen.Class1.Main(String[] arguments)
http://spaces.msn.com/members/staceyw/Blog/cns!1pnsZpX0fPvDxLKC6rAAhLsQ!304.entry
> > > Yes I'm tring the same thing and don't seem to be able to get it to work.
> > >
[quoted text clipped - 55 lines]
> > > r
> > > at
Microsoft.Web.Services2.Messaging.SoapClient.SendRequestResponse(String me
> > > thodname, SoapEnvelope envelope)
> > > at ClientGen.TcpProxy.RequestDescription(SoapEnvelope message)
[quoted text clipped - 13 lines]
> > > >
> > > > [1]
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wse/html/gxacon
wsdltosoapclienttool.asp
BenW - 04 Feb 2005 18:45 GMT
Tried all options.
I still get the error message below. What else can I try? Anyone else
succeeded?
Thanks.
> Use the DNS domain name that will "ping". If your running on the same host,
> localhost should work unless something else is going on.
[quoted text clipped - 173 lines]
> > >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wse/html/gxacon
wsdltosoapclienttool.asp