Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 70500 invoked from network); 3 Mar 2006 22:09:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Mar 2006 22:09:13 -0000 Received: (qmail 15259 invoked by uid 500); 3 Mar 2006 22:09:49 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 15246 invoked by uid 500); 3 Mar 2006 22:09:49 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 15235 invoked by uid 99); 3 Mar 2006 22:09:49 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 14:09:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [151.193.220.17] (HELO sgtulmg01-out.sabre.com) (151.193.220.17) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Mar 2006 14:09:47 -0800 Received: from unknown (HELO sghdqbh01.Global.ad.sabre.com) ([10.12.64.16]) by sgtulmg01-out.sabre.com with ESMTP; 03 Mar 2006 16:09:26 -0600 X-ExtLoop1: From 10.12.64.16 X-IronPort-AV: i="4.02,163,1139205600"; d="scan'208,217"; a="785258929:sNHT319129396" Received: from sgtulmsp02.Global.ad.sabre.com ([10.12.64.23]) by sghdqbh01.Global.ad.sabre.com with Microsoft SMTPSVC(6.0.3790.1830); Fri, 3 Mar 2006 16:09:25 -0600 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C63F0F.2218DDBE" Subject: WSDL - stubs generation Date: Fri, 3 Mar 2006 16:09:18 -0600 Message-ID: <8DC88589842BC24CAC34D4F39E9AD9E203C8EAA0@sgtulmsp02.Global.ad.sabre.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: WSDL - stubs generation Thread-Index: AcY/BqDOVpzPL5KlQS2y0pukLOEYSwABzlyQ From: "Samuel, Johnson" To: X-OriginalArrivalTime: 03 Mar 2006 22:09:25.0664 (UTC) FILETIME=[22266A00:01C63F0F] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------_=_NextPart_001_01C63F0F.2218DDBE Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, =20 I am trying to create WSDL for a service that accepts request as attachment (XML content). I used wsdl2java to generate the stubs. =20 I have two issues=20 1). When request/response attachment part is set as string the stubs generated throws error while reading the response back. 2). Apart from using "xsd:string" is there a means I can pass my xml object mapping in attachment. How to define that in my wsdl:message. =20 Below is the wsdl I created for the service. =20 Any suggestion/help is much appreciated. Thanks in advance =20 rgds, =20 =20 ----------- WSDL ------------------- =20 =20 =20 =20 ------_=_NextPart_001_01C63F0F.2218DDBE Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I am trying to create WSDL for a = service that accepts request as attachment (XML content). I used wsdl2java to = generate the stubs.

 

I have two issues =

1). When request/response = attachment part is set as string the stubs generated throws error while reading the = response back.

2). Apart from using = “xsd:string” is there a means I can pass my xml object mapping in attachment. How to = define that in my wsdl:message.

 

Below is the wsdl I created for = the service.

 

Any suggestion/help is much = appreciated. Thanks in advance

 

rgds,

=

 

 

----------- WSDL = -------------------

 

<wsdl:message name=3D"MyServiceRequest">

      = <wsdl:part name=3D"reqheader" = element=3D"eb:MessageHeader"/>

      = <wsdl:part name=3D"reqheader2" = element=3D"wsse:Security"/>

      = <wsdl:part name=3D"reqbody" = type=3D"xsd:string"/>

      = <wsdl:part name=3D"reqpart" = type=3D"xsd:string"/>

</wsdl:message>

<wsdl:message name=3D"MyServiceResponse">

      = <wsdl:part name=3D"resheader" = element=3D"eb:MessageHeader"/>

      = <wsdl:part name=3D"resheader2" = element=3D"wsse:Security"/>

      = <wsdl:part name=3D"resbody" = type=3D"xsd:string"/>

      = <wsdl:part name=3D"respart" = type=3D"xsd:string"/>

</wsdl:message>

<wsdl:portType name=3D"MyServicePortType">

      = <wsdl:operation name=3D"MyServiceRQ">

      = <wsdl:input message=3D"tns:MyServiceRequest"/><= /p>

      = <wsdl:output message=3D"tns:MyServiceResponse"/>=

      = </wsdl:operation>

</wsdl:portType><= /span>

<wsdl:binding name=3D"MyServiceSoapBinding" type=3D"tns:MyServicePortType">

=

      = <soap:binding style=3D"rpc" = transport=3D"http://schemas.xmlsoap.org/soap/http"/>

      = <wsdl:operation name=3D"MyServiceRQ">

     &nbs= p;      <soap:operation soapAction=3D"" = style=3D"document"/>

     &nbs= p;      = <wsdl:input>

     &nbs= p;            = <soap:header message=3D"tns:MyServiceRequest" part=3D"reqheader" use=3D"literal"/>

     &nbs= p;            = <soap:header message=3D"tns:MyServiceRequest" part=3D"reqheader2" use=3D"literal"/>

     &nbs= p;            = <mime:multipartRelated>

     &nbs= p;            = ;      = <mime:part>

     &nbs= p;            = ;            = <soap:body part=3D"reqbody" = use=3D"literal"/>

     &nbs= p;            = ;      = </mime:part>         &= nbsp;           &n= bsp;        =

     &nbs= p;            = ;      = <mime:part>

     &nbs= p;            = ;            = <mime:content part=3D"reqpart" = type=3D"text/plain"/>

     &nbs= p;            = ;      = </mime:part>

     &nbs= p;            = </mime:multipartRelated>

     &nbs= p;      = </wsdl:input>

     &nbs= p;      = <wsdl:output>

     &nbs= p;            = <soap:header message=3D"tns:MyServiceResponse" part=3D"resheader" use=3D"literal"/>

     &nbs= p;            = <soap:header message=3D"tns:MyServiceResponse" = part=3D"resheader2" use=3D"literal"/>       &= nbsp;      

     &nbs= p;            = <mime:multipartRelated>

     &nbs= p;            = ;      = <mime:part>

     &nbs= p;            = ;            = <soap:body part=3D"resbody" = use=3D"literal"/>

     &nbs= p;            = ;      = </mime:part>         &= nbsp;           &n= bsp; 

     &nbs= p;            = ;      = <mime:part>

     &nbs= p;            = ;            = <mime:content part=3D"respart"  = type=3D"text/plain"/>

     &nbs= p;            = ;      = </mime:part>

     &nbs= p;            = </mime:multipartRelated>

     &nbs= p;      = </wsdl:output>

      = </wsdl:operation>

</wsdl:binding>

<wsdl:service name=3D"MyService">

      = <wsdl:port binding=3D"tns:MyServiceSoapBinding" name=3D"MyServiceSOAPPort">

     &nbs= p;      <soap:address location=3D"http://127.0.0.1:8100/webservice"/>

      = </wsdl:port>

</wsdl:service>

------_=_NextPart_001_01C63F0F.2218DDBE--