Looking at the schema, it looks like the CXF message is correct.
The operation message points at the HelloWorld element:
<xsd:element name="HelloWorld" type="tns:HelloWorld"/>
The HelloWorld type is a sequence with an arg0 element:
<xsd:complexType name='HelloWorld'>
<xsd:sequence>
<xsd:element minOccurs='0' name='arg0' type="tns:HelloWorldReq"/>
</xsd:sequence>
</xsd:complexType>
Thus the arg0 should be there according to the schema.
Dan
On Monday 03 September 2007, vashistvishal wrote:
> I'm consuming a service using CXF client which uses this wsdl
> mentioned below.
>
> When the outgoing message is sent it adds _arg0_ in soap packet, which
> is one
> element extra, client is not expecting this.
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body><ns2:HelloWorld
> xmlns:ns2="http://www.superpartners.com.au/matt.HelloWorld3">
> <arg0>
> <id>HELLO VISHAL</id>
> </arg0>
> </ns2:HelloWorld>
> </soap:Body>
> </soap:Envelope>
> --------------------------------------
>
> My cleint is expecting this...packet.
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
> <soap:Body><ns2:HelloWorld
> xmlns:ns2="http://www.superpartners.com.au/matt.HelloWorld3">
>
> <id>HELLO VISHAL</id>
>
> </ns2:HelloWorld>
> </soap:Body>
> </soap:Envelope>
>
> -----
> This issue seems to be with java or CXF implementation. Any help will
> be good
> or pointers to remove this additional elemnt which seems to be coming
> in no mmater what
> i do with WSDL.
> Is this soemthing to do with Java lang specific or i'm making some
> dumb mistake.
>
> Part of WSDL is shopwn below
>
> <xsd:element name="HelloWorld" type="tns:HelloWorld"/>
> <xsd:element name="HelloWorldResponse"
> type="tns:HelloWorldResponse"/>
>
> <xsd:complexType name='HelloWorld'>
> <xsd:sequence>
> <xsd:element minOccurs='0' name='arg0' type="tns:HelloWorldReq"/>
> </xsd:sequence>
> </xsd:complexType>
>
> <xsd:complexType name='HelloWorldReq'>
> <xsd:sequence>
> <xsd:element minOccurs='0' name='id' type='xsd:string'/>
> </xsd:sequence>
> </xsd:complexType>
>
> <xsd:complexType name='HelloWorldResponse'>
> <xsd:sequence>
> <xsd:element minOccurs='0' name='return'
> type='tns:HelloWorldResp'/> </xsd:sequence>
> </xsd:complexType>
>
> <xsd:complexType name='HelloWorldResp'>
> <xsd:sequence>
> <xsd:element minOccurs='0' name='result' type='xsd:string'/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
>
> </wsdl:types>
>
> <wsdl:message name="HelloWorldIn">
> <wsdl:part name="HelloWorld" element="tns:HelloWorld"/>
> </wsdl:message>
>
> <wsdl:message name="HelloWorldOutput">
> <wsdl:part name="HelloWorldResponse"
> element="tns:HelloWorldResponse"/> </wsdl:message>
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog