Here below goes my wsdl. But I have to say that what I want finally is to avoid the param name in my soap body, because now what I get is the method name, the param name and then the information I want: <ns2:SubmitReq soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:prueba"> <submitReqType xsi:type="ns2:submitReqType"> <element1> <element2> [....] And I want: <ns2:SubmitReq soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="urn:prueba"> <element1> <element2> [....]
(I want to avoid de param or the method name. In this last case, I rename the param name to the method name. I think that document style has something to do with this.) The wsdl file: =================== <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions targetNamespace="urn:prueba" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="urn:prueba" xmlns:tns="urn:prueba" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <wsdl:types> <schema targetNamespace="urn:prueba" xmlns="http://www.w3.org/2001/XMLSchema"> <xs:complexType name="submitReqType"> <xs:complexContent> <xs:sequence> [...] ( a lot of optional elements) </xs:sequence> </schema> </wsdl:types> <wsdl:message name="SubmitReqRequest"> <wsdl:part name="SubmitReqType" type="tns:submitReqType"/> </wsdl:message> <wsdl:message name="SubmitReqResponse"> <wsdl:part name="submitRspType" type="tns:submitRspType"/> </wsdl:message> <wsdl:portType name="prueba"> <wsdl:operation name="SubmitReq"> <wsdl:input message="impl:SubmitReqRequest" name="SubmitReqRequest"/> <wsdl:output message="impl:SubmitReqResponse" name="SubmitReqResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="PruebaSoapBinding" type="impl:prueba"> <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="SubmitReq"> <wsdlsoap:operation soapAction=""/> <wsdl:input name="SubmitReqRequest"> <wsdlsoap:body use="encoded" namespace="urn:prueba" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </wsdl:input> <wsdl:output name="SubmitReqResponse"> <wsdlsoap:body use="encoded" namespace="urn:prueba" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="pruebaService"> <wsdl:port binding="impl:PruebaSoapBinding" name="Prueba"> <wsdlsoap:address location="http://localhost:8080/axis/services/Prueba"/> </wsdl:port> </wsdl:service> </wsdl:definitions> ----- Original Message ----- From: "Kevin Jones" <[EMAIL PROTECTED]> To: "Axis User" <[EMAIL PROTECTED]> Sent: Friday, December 20, 2002 2:48 PM Subject: Re: Document service > Ronaldo, > > you typically need to do more than simply change the style to document. > Can you post your WSDL here for us to see? > > Kevin Jones > DevelopMentor > > On Fri, 2002-12-20 at 11:59, Rolando Pablos S�nchez wrote: > > I have been doing a rpc service, but now I have modified my wdsl file > > and I have changed to: soap:binding style="document". > > But it doesn�t work. I don't know if I have to make more changes in my > > wsdl file. Besides, the WSDL2Java tools generates the deploy.wsdd with > > the provider attribute = java:RPC, just like with the rpc service. > > Nothing about document style. > > I have seen what is in the wire with "tcpmon", and the client does the > > request correctly, but the server responds: > > org.xml.sax.SAXException: SimpleDeserializer encountered a child > > element, which is NOT expected, in something it was trying to > > deserialize > > > > if you can help me, let me know. > > Thanks >
