Thanks Anne!
I changed operation style to "wrapped" in the server-config.wsdd
It added an additional element between the parameter and the soap body element. It's working fine now! :-)
@All But - what's the difference to RPC-style then?
However, the I kept struggling with Axis+Castor+Serializer the last few hours and am very tired of all the neat little problems arising on the way... my last one was a case-sensitivity problem. I had elements in my schema with lower-case names (e.g. <xsd:element name="foobar" type="xsd:string"/>) and Castor generated Foobar.class. The web service client got an answer with the element "foobar", and so could not find the appropriate deserializer. I changed all the names to have the first character upper case, and everything works smooth now.
(I hope this is the right way to do this)
regards MIke
Anne Thomas Manes schrieb:
If you're using document/literal, then you won't get an operation name unless you define one. I sugesst you use the document/literal wrapped convention, in which you wrap your input parameter with an element that has the same name as your operation.
Anne
On 5/12/05, Mike Haller <[EMAIL PROTECTED]> wrote:
I changed a lot of WSDL and WSDD stuff, so now I get
<soapenv:Body> <myparameter xsi:nil="true" xmlns=""/> </soapenv:Body>
still missing the operation name itself. The client send the wrong SOAP request. Where do I have to tell the client (generated with wsdl2java) that he needs to include the operation name?
I think it should be something like this:
<soapenv:Body> <myOperation> <myParameter xsi:nil="true" xmlns=""/> </myOperation> </soapenv:Body>
Mike Haller schrieb:
Hi,
i've got the following exception:
-------------------------------- AxisFault faultCode: {http://xml.apache.org/axis/}Client faultSubcode: faultString: No such operation 'in0' faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:No such operation 'in0' at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:179)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:319) ... --------------------------------
However, the SOAP request seems to look like this (the output comes from one custom handler):
-------------------------------- <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body> <in0 xsi:nil="true" xmlns="myns1"/></soapenv:Body></soapenv:Envelope> --------------------------------
The output of msgContext.getOperationDesc() returns the correct method name, which is completely missing in the above soap message. I'm wondering where the problem lies and can't find it.
Perhaps someone can direct me into the right direction?
regards MIke
