I'm using SoapClient and SoapService classes.
It's a simple chat app. i enter text in a textbox and the soapclient
send it to the soapService using SendOneWay method.
The message is received by the SoapService. I turned on diagnostics
and I see the messages from the other machine in the InputTrace file.
But the method refered to in the action element is not being called and
nothing happens!
However, if i send the message to myself, by sending to the same address and
port
the app os listening on, it works! The soapenvelope is exactly the same!
regardless of whether or not the message came from the local machine or
another machine.
I don't understand!!
Log File :
-- Message sent to same machine
<soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsa:Action>urn:chat:procMessage</wsa:Action>
<wsa:MessageID>uuid:b4213022-1fff-4e3f-bdf0-e6404b238a4d</wsa:MessageID>
<wsa:To>soap.tcp://192.168.55.100:2000/ChatServer</wsa:To>
<wsse:Security>
<wsu:Timestamp
wsu:Id="Timestamp-a1f5775f-80f2-4e16-9930-d624e47349a0">
<wsu:Created>2004-08-09T00:56:23Z</wsu:Created>
<wsu:Expires>2004-08-09T01:01:23Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<string xmlns="http://tempuri.org/">doodie</string>
</soap:Body>
</soap:Envelope>
-- Message Sent from another machine.
<soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsa:Action>urn:chat:procMessage</wsa:Action>
<wsa:MessageID>uuid:8a22ffdc-c0b0-4397-b311-034c9540eeb1</wsa:MessageID>
<wsa:To>soap.tcp://192.168.55.100:2000/ChatServer</wsa:To>
<wsse:Security>
<wsu:Timestamp
wsu:Id="Timestamp-09243ca7-55b5-46c4-a7d1-67144f8fd8e6">
<wsu:Created>2004-08-09T03:58:46Z</wsu:Created>
<wsu:Expires>2004-08-09T04:03:46Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<string xmlns="http://tempuri.org/">poopie</string>
</soap:Body>
</soap:Envelope>
I get the message both times, but the method procMessage is only called when
i send the message to the same address i'm listening on.
Am i missing something stupid. all the angle brackets are blurring together
Did you register the listening address Uri at the SoapReceiver's end ?

Signature
Thank you very much
Warmest Regards,
Softwaremaker
Architect | Evangelist | Consultant
+++++++++++++++++++++++++++++++++
> I'm using SoapClient and SoapService classes.
> It's a simple chat app. i enter text in a textbox and the soapclient
[quoted text clipped - 16 lines]
> -- Message sent to same machine
> <soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Header>
> <wsa:Action>urn:chat:procMessage</wsa:Action>
<wsa:MessageID>uuid:b4213022-1fff-4e3f-bdf0-e6404b238a4d</wsa:MessageID>
> <wsa:To>soap.tcp://192.168.55.100:2000/ChatServer</wsa:To>
> <wsse:Security>
[quoted text clipped - 13 lines]
>
> <soap:Envelope xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
y-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Header>
> <wsa:Action>urn:chat:procMessage</wsa:Action>
<wsa:MessageID>uuid:8a22ffdc-c0b0-4397-b311-034c9540eeb1</wsa:MessageID>
> <wsa:To>soap.tcp://192.168.55.100:2000/ChatServer</wsa:To>
> <wsse:Security>
[quoted text clipped - 13 lines]
> i send the message to the same address i'm listening on.
> Am i missing something stupid. all the angle brackets are blurring together
cyberprunes - 09 Aug 2004 14:09 GMT
yes, i registered with this code :
string listenAddr = String.Format("soap.tcp://{0}:{1}/ChatServer",
ipaddress,
portNumber);
System.Uri listenURI = new System.Uri(listenAddr);
server = new ChatServer();
SoapReceivers.Add(listenURI,server);
server derives from SoapService
> Did you register the listening address Uri at the SoapReceiver's end ?
>
[quoted text clipped - 77 lines]
> > Am i missing something stupid. all the angle brackets are blurring
> together
cyberprunes - 09 Aug 2004 15:15 GMT
Maybe this is a clearer explanation...
if i send messages to machines on the same network the message is received
by the soapservice and the method in the soap action is executed and
everything works great
But when sending from a different network ( connected via vpn) the remote
machine does receive the message (its in the InputTrace file) but the
method in the soapaction is NOT executed.
very strange. Thanks
> Did you register the listening address Uri at the SoapReceiver's end ?
>
[quoted text clipped - 77 lines]
> > Am i missing something stupid. all the angle brackets are blurring
> together
Lucien - 09 Aug 2004 22:09 GMT
Check the eventlog for any error. What I suspect though is that the 'To'
address does not match the address you registered for the listener. They
have to match exactly. You can also use Via to use a 'logical' address for
the To address. Put in the via the address you're using now, then for the
Via property choose a logical name for your service and use SoapActor on the
service (see TcpSyncStockService sample).
> Maybe this is a clearer explanation...
>
[quoted text clipped - 32 lines]
> > > <soap:Envelope
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> > > <soap:Header>
[quoted text clipped - 19 lines]
> > > <soap:Envelope
> > xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecuri
> > ty-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurit
> > y-utility-1.0.xsd" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> > > <soap:Header>
[quoted text clipped - 20 lines]
> > > Am i missing something stupid. all the angle brackets are blurring
> > together