Anne Thomas Manes wrote:
The value of the SOAPAction HTTP header is a URI.
It may be (and often is) different from the endpoint URL (i.e.,
targetEndpointAddress).

The value of the SOAPAction URI is specified in the
definitions/binding/operation element in the WSDL in this line:

       <soap:operation soapAction="urn:service:operation"/>

The SOAPAction URI does not need to resolve to a physical location. It
is simply a name used to indicate what action the service should
perform.

The value of the endpoint URL is specified in the
definitions/service/port element in the WSDL in this line:

       <soap:address
location="http://company.com:8080/axis2/services/service-name"/>

The endpoint URL must resolve to a physical location.

Thanks, I haven't had my brain wrapped inside out yet, and programming Java in anything but Java just seems quite unnatural to me.

I did try to generate the java stub from a wsdl file, but this just generated a huge bunch of files without any hint as to what to do with them, none of the file's name corresponds to the SOAP Action or the "portName" (the later still confuses me because I think of a port as a tcp port which is also in play).

I'm trying to find documentation that

a) makes sense to me
b) is verbose enough to allow me to do stuff

The example in the user-guide does not make it clear to me how to construct a soap request message, set the soap action, send the request to the web service and receive the result. The API documentation does not it anything clearer.

I've spent two weeks searching for documentation and trying to figure out what this is all about, and yet I find myself unable to write a single line of code that does stuff.

I would expect to do something like

SOAPMessage requestSoap  = new SOAPMessage();
SOAPMessage responseSoap = new SOAPMessage();
requestSoap.readXMLFile("requestfile");

HttpClient socket = new HttpClient(URL
    "http://localhost:8080/ws/service";);
socket.connect();

socket.setHttpMethod("POST");
socket.addHttpHeader("SOAPAction","DoThis");
socket.addHttpBody(soapRequest);
socket.sendRequest();
socket.getResponse(responseSoap);
responseSoap.writeXMLFile("responsefile");

This pretty much corresponds to the flow of a RPC call, but I find it immensely difficult to reduce the problem to anything like that from the documentation at hand.

Is there some source of documentation that is actually consistent, sufficient and selfcontained? - or do I need brain surgery to use Axis?

Thanks, Erik

--
Ph: +34.666334818                      web: http://www.locolomo.org
X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt
Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to