You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Niall McLoughlin <nm...@eiscompany.com> on 2005/06/07 18:51:19 UTC

No Operation

Greetings,

New to axis (and web services in general) here and looking for a little 
guideance. I'm contacting a WS where based on what service/action I'm 
calling I need to pass various types of xml documents (or data) in the 
soap body and the service will return an xml document. There are no 
specific operations to call, I just need to pass some xml data. How do I 
do this? When I don't set an operation name, axis returns an error. Any 
help would be greatly appreciated.

Basically, my request should look something like this:

POST /ServiceRequestHandler HTTP/1.1
Host: epass.elliemaeservices.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "https://HOST/ServiceRequest"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
	<xml data>
		...
	</xml data>
  </soap:Body>
</soap:Envelope>



Re: No Operation

Posted by Anne Thomas Manes <at...@gmail.com>.
Does your web service provider provide you with a WSDL? 

Given the example SOAP message, I suspect you will need to use the
messaging API.

On 6/7/05, Niall McLoughlin <nm...@eiscompany.com> wrote:
>  Greetings,
>  
>  New to axis (and web services in general) here and looking for a little
> guideance. I'm contacting a WS where based on what service/action I'm
> calling I need to pass various types of xml documents (or data) in the soap
> body and the service will return an xml document. There are no specific
> operations to call, I just need to pass some xml data. How do I do this?
> When I don't set an operation name, axis returns an error. Any help would be
> greatly appreciated.
>  
>  Basically, my request should look something like this:
>  POST /ServiceRequestHandler HTTP/1.1
> Host: epass.elliemaeservices.com
> Content-Type: text/xml; charset=utf-8
> Content-Length: length
> SOAPAction: "https://HOST/ServiceRequest"
> 
> <?xml version="1.0" encoding="utf-8"?>
> <soap:Envelope
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
> xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
>  <soap:Body>
>  <xml data>
>  ...
>  </xml data>
>  </soap:Body>
> </soap:Envelope>
>  
>