axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venky Vasant <>
Subject Re: Building SOAP enevlopes aroun a regular XML
Date Fri, 02 Feb 2007 13:08:45 GMT
I used suggested way of adding the document to the body

I get the following exception

WSWS3277E: Error: No such  operation &amp;apos;ACORD&amp;apos;

First line in my message after adding the document to SOAP envelope looks as below
<SOAP-ENV:Envelope xmlns:SOAP-ENV=""><SOAP-ENV:Header/><SOAP-ENV:Body><ACORD>

ACORD is the root element within SOAP envelope

How do i mention the operation in this case

i tried 

        MimeHeaders hd = message.getMimeHeaders();
        hd.addHeader("process", "");

It did not work


----- Original Message ----
From: Alistair Young <>
Sent: Thursday, February 1, 2007 6:45:30 PM
Subject: Re: Building SOAP enevlopes aroun a regular XML

not sure if this is what you want? This invokes a web service without the wsdl:

MessageFactory factory = MessageFactory.newInstance();
SOAPMessage soapMessage = factory.createMessage();
SOAPBody body = soapMessage.getSOAPBody();
SOAPConnectionFactory conFactory = SOAPConnectionFactory.newInstance();
SOAPConnection soapConnection = conFactory.createConnection();
SOAPMessage soapReply =, WebServiceURL;


mov eax,1
mov ebx,0
int 80h

On 1 Feb 2007, at 13:13, Jeff Greif wrote:

Axis incorporates SAAJ and wsdl4j.  The first is used to create and
manipulate SOAP envelopes and their content.  The second is used to
read information from WSDLs.  If you Google for these APIs you can
find descriptions of how to use them; perhaps they are adequate to
your purpose.

Axis also provides an example of dynamic invocation which uses the
Call interfaces.


On 2/1/07, Venky Vasant <> wrote:

I have used Apache Axis and have written a client which connects to webservices and gets response
using Invoke, it worked fine for me thanks for this one.

Unfortunately my requirement is to write a client which builds  SOAP XML from the regular
XML myself and may be read WSDL (i am guessing that AXIS read WSDL  to create SOAP envelope
around the regular XML) to add proper namespaces  and then use Call method tto get the response.
This means kind of avoid a upper layer of abstraction

Let me know if this can be done, if yes let me know how and if there is code i can go through
and use for my web-service client


TV dinner still cooling?
Check out "Tonight's Picks" on Yahoo! TV.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

Have a burning question?  
Go to and get answers from real people who know.
View raw message