You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Gertjan van Oosten <ge...@West.NL> on 2007/07/03 10:50:51 UTC

Strange problem with web service called from within web service

Hi,

I have a strange problem: when I call a web service from a test client,
the request/response is like this:

  ==== Request ====
  POST /axis2/services/UpdateService HTTP/1.1
  Content-Type: text/xml; charset=UTF-8
  SOAPAction: "sendUpdate"
  User-Agent: Axis2
  Host: localhost:8888
  Transfer-Encoding: chunked

  <?xml version='1.0' encoding='UTF-8'?>
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
	   <sendUpdate xmlns="http://schemas.west.nl/update/">
	      <updateString xmlns="">some test!</updateString>
	   </sendUpdate>
	</soapenv:Body>
     </soapenv:Envelope>0
  ==== Response ====
  HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Content-Type: text/xml;charset=UTF-8
  Transfer-Encoding: chunked
  Date: Tue, 03 Jul 2007 08:41:46 GMT

  <?xml version='1.0' encoding='UTF-8'?>
     <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Body>
	   <sendUpdateResponse xmlns="http://schemas.west.nl/update/" />
	</soapenv:Body>
     </soapenv:Envelope>0
  ==============

If I call the same web service from within another web service inside
Axis2, the request/response is like this:

  ==== Request ====
  POST /axis2/services/UpdateService HTTP/1.1
  Content-Type: text/xml; charset=UTF-8
  SOAPAction: "sendUpdate"
  User-Agent: Axis2
  Host: localhost:8888
  Transfer-Encoding: chunked

  <?xml version='1.0' encoding='UTF-8'?>
     <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Header>
	   <wsa:To>http://localhost:8888/axis2/services/UpdateService</wsa:To>
	   <wsa:MessageID>urn:uuid:E428BE6AFDFFB1FE101183452106041</wsa:MessageID>
	   <wsa:Action>sendUpdate</wsa:Action>
	</soapenv:Header>
	<soapenv:Body>
	   <sendUpdate xmlns="http://schemas.west.nl/update/">
	      <updateString xmlns="">some test!</updateString>
	   </sendUpdate>
	</soapenv:Body>
     </soapenv:Envelope>0
  ==== Response ====
  HTTP/1.1 200 OK
  Server: Apache-Coyote/1.1
  Content-Type: text/xml;charset=UTF-8
  Transfer-Encoding: chunked
  Date: Tue, 03 Jul 2007 08:41:45 GMT

  <?xml version='1.0' encoding='UTF-8'?>
     <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
	<soapenv:Header>
	   <wsa:Action>http://schemas.west.nl/update/UpdateServiceInterface/sendUpdateResponse</wsa:Action>
	   <wsa:RelatesTo>urn:uuid:E428BE6AFDFFB1FE101183452106041</wsa:RelatesTo>
	</soapenv:Header>
	<soapenv:Body>
	   <sendUpdateResponse xmlns="http://schemas.west.nl/update/" />
	</soapenv:Body>
     </soapenv:Envelope>0
  ==============

This is with Axis2 1.2.  The client code calling the web service is
identical in both cases.  What causes this, and what can I do to get the
second call to behave the same as the first?

Regards,
-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Strange problem with web service called from within web service

Posted by Gertjan van Oosten <ge...@West.NL>.
Hi Deepal,

As quoted from Deepal Jayasinghe <de...@opensource.lk>:
> The only issue is , you have not engage addressing module at the client
> side , but at the server you do.

Ah, that makes sense.  So can I avoid the addressing module at the
server part (the other side may not understand it, it is currently
running under Axis1)?  Can that be done programmatically, or do I need
to disable it as a globally engaged module?  What would be the side
effects (if any) of disabling it?

Regards,
-- 
-- Gertjan van Oosten, gertjan@West.NL, West Consulting B.V., +31 15 2191 600

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Re: Strange problem with web service called from within web service

Posted by Deepal Jayasinghe <de...@opensource.lk>.
The only issue is , you have not engage addressing module at the client
side , but at the server you do.

Thanks
Deepal


> Hi,
>
> I have a strange problem: when I call a web service from a test client,
> the request/response is like this:
>
>   ==== Request ====
>   POST /axis2/services/UpdateService HTTP/1.1
>   Content-Type: text/xml; charset=UTF-8
>   SOAPAction: "sendUpdate"
>   User-Agent: Axis2
>   Host: localhost:8888
>   Transfer-Encoding: chunked
>
>   <?xml version='1.0' encoding='UTF-8'?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 	<soapenv:Body>
> 	   <sendUpdate xmlns="http://schemas.west.nl/update/">
> 	      <updateString xmlns="">some test!</updateString>
> 	   </sendUpdate>
> 	</soapenv:Body>
>      </soapenv:Envelope>0
>   ==== Response ====
>   HTTP/1.1 200 OK
>   Server: Apache-Coyote/1.1
>   Content-Type: text/xml;charset=UTF-8
>   Transfer-Encoding: chunked
>   Date: Tue, 03 Jul 2007 08:41:46 GMT
>
>   <?xml version='1.0' encoding='UTF-8'?>
>      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 	<soapenv:Body>
> 	   <sendUpdateResponse xmlns="http://schemas.west.nl/update/" />
> 	</soapenv:Body>
>      </soapenv:Envelope>0
>   ==============
>
> If I call the same web service from within another web service inside
> Axis2, the request/response is like this:
>
>   ==== Request ====
>   POST /axis2/services/UpdateService HTTP/1.1
>   Content-Type: text/xml; charset=UTF-8
>   SOAPAction: "sendUpdate"
>   User-Agent: Axis2
>   Host: localhost:8888
>   Transfer-Encoding: chunked
>
>   <?xml version='1.0' encoding='UTF-8'?>
>      <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 	<soapenv:Header>
> 	   <wsa:To>http://localhost:8888/axis2/services/UpdateService</wsa:To>
> 	   <wsa:MessageID>urn:uuid:E428BE6AFDFFB1FE101183452106041</wsa:MessageID>
> 	   <wsa:Action>sendUpdate</wsa:Action>
> 	</soapenv:Header>
> 	<soapenv:Body>
> 	   <sendUpdate xmlns="http://schemas.west.nl/update/">
> 	      <updateString xmlns="">some test!</updateString>
> 	   </sendUpdate>
> 	</soapenv:Body>
>      </soapenv:Envelope>0
>   ==== Response ====
>   HTTP/1.1 200 OK
>   Server: Apache-Coyote/1.1
>   Content-Type: text/xml;charset=UTF-8
>   Transfer-Encoding: chunked
>   Date: Tue, 03 Jul 2007 08:41:45 GMT
>
>   <?xml version='1.0' encoding='UTF-8'?>
>      <soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> 	<soapenv:Header>
> 	   <wsa:Action>http://schemas.west.nl/update/UpdateServiceInterface/sendUpdateResponse</wsa:Action>
> 	   <wsa:RelatesTo>urn:uuid:E428BE6AFDFFB1FE101183452106041</wsa:RelatesTo>
> 	</soapenv:Header>
> 	<soapenv:Body>
> 	   <sendUpdateResponse xmlns="http://schemas.west.nl/update/" />
> 	</soapenv:Body>
>      </soapenv:Envelope>0
>   ==============
>
> This is with Axis2 1.2.  The client code calling the web service is
> identical in both cases.  What causes this, and what can I do to get the
> second call to behave the same as the first?
>
> Regards,
>   

-- 
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org