Did you configure the endpoint to use doc/lit: <jsr181:endpoint style="document" ...>
maybe you can try setting the typeMapping="aegis" ? On Thu, Feb 21, 2008 at 4:37 PM, Roland Sperl <[EMAIL PROTECTED]> wrote: > Hi Guillaume, > > thx for your quick answer. > > Here is the wsdl, the format ist xsd:string which should be correct. > > <?xml version="1.0" encoding="UTF-8" ?> > - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" > xmlns:soap11="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" > xmlns:soapenc11="http://schemas.xmlsoap.org/soap/encoding/" > xmlns:soapenc12="http://www.w3.org/2003/05/soap-encoding" > xmlns:tns="http://de.metafinanz.sca.java.pojo.transform/jsrpojo" > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap12/" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > targetNamespace="http://de.metafinanz.sca.java.pojo.transform/jsrpojo"> > - <wsdl:types> > - <xsd:schema attributeFormDefault="qualified" > elementFormDefault="qualified" > targetNamespace="http://de.metafinanz.sca.java.pojo.transform/jsrpojo" > xmlns:xsd="http://www.w3.org/2001/XMLSchema"> > - <xsd:element name="transform"> > - <xsd:complexType> > - <xsd:sequence> > <xsd:element maxOccurs="1" minOccurs="1" name="in0" nillable="true" > type="xsd:string" /> > <xsd:element maxOccurs="1" minOccurs="1" name="in1" nillable="true" > type="xsd:string" /> > <xsd:element maxOccurs="1" minOccurs="1" name="in2" nillable="true" > type="xsd:string" /> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > - <xsd:element name="transformResponse"> > - <xsd:complexType> > - <xsd:sequence> > <xsd:element maxOccurs="1" minOccurs="1" name="out" nillable="true" > type="xsd:string" /> > </xsd:sequence> > </xsd:complexType> > </xsd:element> > </xsd:schema> > </wsdl:types> > - <wsdl:message name="transformRequest"> > <wsdl:part element="tns:transform" name="parameters" /> > </wsdl:message> > - <wsdl:message name="transformResponse"> > <wsdl:part element="tns:transformResponse" name="parameters" /> > </wsdl:message> > - <wsdl:portType name="transformEnginePortType"> > - <wsdl:operation name="transform"> > <wsdl:input message="tns:transformRequest" name="transformRequest" /> > <wsdl:output message="tns:transformResponse" name="transformResponse" /> > </wsdl:operation> > </wsdl:portType> > - <wsdl:binding name="httpConsumerBinding" > type="tns:transformEnginePortType"> > <wsdlsoap:binding style="document" > transport="http://schemas.xmlsoap.org/soap/http" /> > - <wsdl:operation name="transform"> > <wsdlsoap:operation soapAction="" /> > - <wsdl:input name="transformRequest"> > <wsdlsoap:body use="literal" /> > </wsdl:input> > - <wsdl:output name="transformResponse"> > <wsdlsoap:body use="literal" /> > </wsdl:output> > </wsdl:operation> > </wsdl:binding> > - <wsdl:service name="httpConsumer"> > - <wsdl:port binding="tns:httpConsumerBinding" name="httpConsumer"> > <wsdlsoap:address location="http://localhost:8081/services/XSLTEngine/" /> > </wsdl:port> > </wsdl:service> > </wsdl:definitions> > > -----Ursprüngliche Nachricht----- > Von: Guillaume Nodet [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 21. Februar 2008 16:31 > An: [email protected] > Betreff: Re: Problems with SOAP-Request > > > > Can you check against the WSDL for the jsr181 endpoint ? > You should be able to access it from jconsole by looking at the http endpoint > in your browser. It should defines the format of the expected data. > > On Thu, Feb 21, 2008 at 4:27 PM, Roland Sperl > <[EMAIL PROTECTED]> wrote: > > Hi All! > > > > I deployed a simple Pojo into the JSR181 with the following Interface: > > > > public String transform(String fromAccountId, String toAccount, String > > amount); > > > > I have build a html-client which calls the Pojo with the following > > SOAP-Call: > > > > <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" > > xmlns:n1="java:de.metafinanz.sca.BankTransaction" > > > > xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > > xmlns:transactionRequest="http://www.metafinanz.org/transform/" > > xsi:type="n1:TransactionRequest"> > > > > <env:Body> > > <transactionRequest:transform> > > <in0>1</in0> > > <in1>2</in1> > > <in2>100</in2> > > </transactionRequest:transform> > > </env:Body> > > > > </env:Envelope> > > > > I thought that the values in the parameters would be automatically set > > into my pojo parameters, but I get the exception: > > > > org.codehaus.xfire.fault.XFireFault: Not enough message parts were > > received for the operation. > > at org.codehaus.xfire.service.binding.ServiceInvocationHandler > > ... > > > > If I put 5 parameters between the <transactionRequest:transform> tag the > > values are passed to my pojo. But in an confusing way, the 1st, 3rd and > > 5th value are passed to my pojo. > > > > Can anyone help me? > > > > Thanks in advance > > Roland > > > > > > -- > Cheers, > Guillaume Nodet > ------------------------ > Blog: http://gnodet.blogspot.com/ > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/
