You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Rh...@sybase.com on 2003/06/26 20:34:34 UTC

Re: [axis] Serializing embedded complex types

Are you using Axis 1.0 or 1.1?




                                                                                                          
                      Balaji D L                                                                          
                      <balajidl@yahoo.c        To:       axis-user@ws.apache.org                          
                      om>                      cc:                                                        
                                               Subject:  Re: [axis] Serializing embedded complex types    
                      06/26/2003 09:36                                                                    
                      AM                                                                                  
                      Please respond to                                                                   
                      axis-user                                                                           
                                                                                                          
                                                                                                          



hi Rhett,
   Try to run this attached example that I had
modified to return a object(Order_) containing
object(ship).Its working fine for me under java and
axis. Then tell us whether you are able to consume it
using stimulators like WSInvoker,WebserviceStudio
etc.,

the wsdd setting is

<service name="OrderProcessors" provider="java:RPC">
             <parameter name="className"
value="samples.userguide.example5.BeanServices"/>
             <parameter name="allowedMethods" value="*"/>
             <beanMapping qname="myNS:Order_"
xmlns:myNS="urn:BeanServices"
languageSpecificType="java:samples.userguide.example5.Order_"/>
             <beanMapping qname="myNS:Ship"
xmlns:myNS="urn:BeanServices"
languageSpecificType="java:samples.userguide.example5.Ship"/>
</service>

Regards
Balaji

 --- Rhett.DeWall@sybase.com wrote: >
> (See attached file: deploy.wsdd)
>
>                       "Sameer
>
>
>                       Bombatkar"               To:
>     axis-user@ws.apache.org
>
>                       <sameer_bom@hotma        cc:
>
>
>                       il.com>
> Subject:  Re: [axis] Serializing embedded complex
> types
>
>
>
>                       06/26/2003 02:57
>
>
>                       AM
>
>
>                       Please respond to
>
>
>                       axis-user
>
>
>
>
>
>
>
>
>
>
>
> Could you also post your deploy.wsdd and the class
> which  all the
> operations
> for youre web-service??
>
>
>
> Sameer.
>
.....................................................
> "If a server crashes in a server farm and no one
> pings it, does it still
> cost four figures to fix?"
>
>
>
>
>
>
> >From: Rhett.DeWall@sybase.com
> >Reply-To: axis-user@ws.apache.org
> >To: <ax...@xml.apache.org>
> >Subject: [axis]  Serializing embedded complex types
> >Date: Wed, 25 Jun 2003 15:51:18 -0600
> >MIME-Version: 1.0
> >Received: from apache.org ([208.185.179.12]) by
> mc7-f15.law1.hotmail.com
> >with Microsoft SMTPSVC(5.0.2195.5600); Wed, 25 Jun
> 2003 14:51:42 -0700
> >Received: (qmail 78050 invoked by uid 500); 25 Jun
> 2003 21:51:16 -0000
> >Received: (qmail 77992 invoked by uid 500); 25 Jun
> 2003 21:51:16 -0000
> >X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
> >Mailing-List: contact axis-user-help@ws.apache.org;
> run by ezmlm
> >Precedence: bulk
> >list-help: <ma...@ws.apache.org>
> >list-unsubscribe:
> <ma...@ws.apache.org>
> >list-post: <ma...@xml.apache.org>
> >Delivered-To: mailing list axis-user@ws.apache.org
> >Delivered-To: apmail-xml-axis-user@xml.apache.org
> >X-Mailer: Lotus Notes Release 5.0.8  June 18, 2001
> >Message-ID:
> <OF...@sybase.com>
> >X-MIMETrack: Serialize by Router on
> BoulderNotes2/SYBASE(Release 5.0.12
> >|February 13, 2003) at 06/25/2003 03:51:18 PM
> >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> >Return-Path:
>
axis-user-return-15952-sameer_bom=hotmail.com@ws.apache.org
> >X-OriginalArrivalTime: 25 Jun 2003 21:51:43.0343
> (UTC)
> >FILETIME=[F74E97F0:01C33B63]
> >
> >Has anyone had luck with embedded complex types
> with Axis.  Taking the
> >Address example one step further, I have WSDL
> describes an address to have
> >a phone that is a complex type, such as:
> >
> >   <EmployeeVO>
> >     <firstName>John</firstName>
> >     <lastName>Doe</lastName>
> >     <phone>
> >        <area>999</area>
> >        <location>9999</location>
> >        <prefix>999</prefix>
> >     </phone>
> >   </EmployeeVO>
> >
> >The WSDL, SOAP request, SOAP response and Java code
> follow.  Basically,
> >AXIS cannot serialize the response because it
> interprets "EmployeeVO" as
> >containing "area"...
> >
> >============= WSDL ==============
> ><?xml version="1.0" encoding="UTF-8"?>
> ><wsdl:definitions
> targetNamespace="urn:OtherTestEJB"
>
>xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
>
>xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> >xmlns:apachesoap="http://xml.apache.org/xml-soap"
> >xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> >xmlns:tns1="http://util.test.sybase.com"
> xmlns:intf="urn:OtherTestEJB"
> >xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> xmlns:impl="urn:OtherTestEJB"
> >xmlns="http://schemas.xmlsoap.org/wsdl/">
> >  <wsdl:types>
> >   <schema xmlns="http://www.w3.org/2001/XMLSchema"
> >targetNamespace="http://util.test.sybase.com">
> >    <import
>
namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
> >    <complexType name="EmployeeVO">
> >     <sequence>
> >      <element name="firstName" nillable="true"
> type="xsd:string"/>
> >      <element name="lastName" nillable="true"
> type="xsd:string"/>
> >      <element name="phone" nillable="true"
> type="tns1:PhoneVO"/>
> >     </sequence>
> >    </complexType>
> >    <complexType name="PhoneVO">
> >     <sequence>
> >      <element name="area" nillable="true"
> type="xsd:string"/>
> >      <element name="location" nillable="true"
> type="xsd:string"/>
> >      <element name="prefix" nillable="true"
> type="xsd:string"/>
> >     </sequence>
> >    </complexType>
> >    <element name="EmployeeVO" nillable="true"
> type="tns1:EmployeeVO"/>
> >   </schema>
> >  </wsdl:types>
> >
> >    <wsdl:message name="noParmsOrReturnResponse">
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getEmployeeInfoRequest">
> >
> >       <wsdl:part name="employeeVO"
> type="tns1:EmployeeVO"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="OverloadedTestRequest1">
> >
> >       <wsdl:part name="value" type="xsd:string"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="OverloadedTestResponse">
> >
> >       <wsdl:part name="OverloadedTestReturn"
> type="xsd:string"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="getEmployeeInfoResponse">
> >
> >       <wsdl:part name="getEmployeeInfoReturn"
> type="tns1:EmployeeVO"/>
> >
> >    </wsdl:message>
> >
> >    <wsdl:message name="twoParameterTestResponse">
> >
> >       <wsdl:part name="twoParameterTestReturn"
> type="xsd:string"/>
> >
>
=== message truncated ===

> ATTACHMENT part 2 application/octet-stream
name=deploy.wsdd


http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.
(See attached file: source files with wsdl.zip)




Re: [axis] Serializing embedded complex types

Posted by Balaji D L <ba...@yahoo.com>.
Axis 1.1, well upgrading to axis 1.1 will not be big
problem. Initially i had 1.0 then rc1, then rc2 and
now 1.1(final).

 --- Rhett.DeWall@sybase.com wrote: > 
> Are you using Axis 1.0 or 1.1?
> 
> 
> 
> 
>                                                     
>                                                     
> 
>                       Balaji D L                    
>                                                     
> 
>                       <balajidl@yahoo.c        To:  
>     axis-user@ws.apache.org                         
> 
>                       om>                      cc:  
>                                                     
> 
>                                               
> Subject:  Re: [axis] Serializing embedded complex
> types    
>                       06/26/2003 09:36              
>                                                     
> 
>                       AM                            
>                                                     
> 
>                       Please respond to             
>                                                     
> 
>                       axis-user                     
>                                                     
> 
>                                                     
>                                                     
> 
>                                                     
>                                                     
> 
> 
> 
> 
> hi Rhett,
>    Try to run this attached example that I had
> modified to return a object(Order_) containing
> object(ship).Its working fine for me under java and
> axis. Then tell us whether you are able to consume
> it
> using stimulators like WSInvoker,WebserviceStudio
> etc.,
> 
> the wsdd setting is
> 
> <service name="OrderProcessors" provider="java:RPC">
>              <parameter name="className"
> value="samples.userguide.example5.BeanServices"/>
>              <parameter name="allowedMethods"
> value="*"/>
>              <beanMapping qname="myNS:Order_"
> xmlns:myNS="urn:BeanServices"
>
languageSpecificType="java:samples.userguide.example5.Order_"/>
>              <beanMapping qname="myNS:Ship"
> xmlns:myNS="urn:BeanServices"
>
languageSpecificType="java:samples.userguide.example5.Ship"/>
> </service>
> 
> Regards
> Balaji
> 
>  --- Rhett.DeWall@sybase.com wrote: >
> > (See attached file: deploy.wsdd)
> >
> >                       "Sameer
> >
> >
> >                       Bombatkar"               To:
> >     axis-user@ws.apache.org
> >
> >                       <sameer_bom@hotma        cc:
> >
> >
> >                       il.com>
> > Subject:  Re: [axis] Serializing embedded complex
> > types
> >
> >
> >
> >                       06/26/2003 02:57
> >
> >
> >                       AM
> >
> >
> >                       Please respond to
> >
> >
> >                       axis-user
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Could you also post your deploy.wsdd and the class
> > which  all the
> > operations
> > for youre web-service??
> >
> >
> >
> > Sameer.
> >
>
.....................................................
> > "If a server crashes in a server farm and no one
> > pings it, does it still
> > cost four figures to fix?"
> >
> >
> >
> >
> >
> >
> > >From: Rhett.DeWall@sybase.com
> > >Reply-To: axis-user@ws.apache.org
> > >To: <ax...@xml.apache.org>
> > >Subject: [axis]  Serializing embedded complex
> types
> > >Date: Wed, 25 Jun 2003 15:51:18 -0600
> > >MIME-Version: 1.0
> > >Received: from apache.org ([208.185.179.12]) by
> > mc7-f15.law1.hotmail.com
> > >with Microsoft SMTPSVC(5.0.2195.5600); Wed, 25
> Jun
> > 2003 14:51:42 -0700
> > >Received: (qmail 78050 invoked by uid 500); 25
> Jun
> > 2003 21:51:16 -0000
> > >Received: (qmail 77992 invoked by uid 500); 25
> Jun
> > 2003 21:51:16 -0000
> > >X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
> > >Mailing-List: contact
> axis-user-help@ws.apache.org;
> > run by ezmlm
> > >Precedence: bulk
> > >list-help: <ma...@ws.apache.org>
> > >list-unsubscribe:
> > <ma...@ws.apache.org>
> > >list-post: <ma...@xml.apache.org>
> > >Delivered-To: mailing list
> axis-user@ws.apache.org
> > >Delivered-To: apmail-xml-axis-user@xml.apache.org
> > >X-Mailer: Lotus Notes Release 5.0.8  June 18,
> 2001
> > >Message-ID:
> >
> <OF...@sybase.com>
> > >X-MIMETrack: Serialize by Router on
> > BoulderNotes2/SYBASE(Release 5.0.12
> > >|February 13, 2003) at 06/25/2003 03:51:18 PM
> > >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> > >Return-Path:
> >
>
axis-user-return-15952-sameer_bom=hotmail.com@ws.apache.org
> > >X-OriginalArrivalTime: 25 Jun 2003 21:51:43.0343
> > (UTC)
> > >FILETIME=[F74E97F0:01C33B63]
> > >
> > >Has anyone had luck with embedded complex types
> > with Axis.  Taking the
> > >Address example one step further, I have WSDL
> > describes an address to have
> > >a phone that is a complex type, such as:
> > >
> > >   <EmployeeVO>
> > >     <firstName>John</firstName>
> > >     <lastName>Doe</lastName>
> > >     <phone>
> > >        <area>999</area>
> > >        <location>9999</location>
> > >        <prefix>999</prefix>
> > >     </phone>
> > >   </EmployeeVO>
> > >
> > >The WSDL, SOAP request, SOAP response and Java
> code
> > follow.  Basically,
> > >AXIS cannot serialize the response because it
> > interprets "EmployeeVO" as
> > >containing "area"...
> > >
> > >============= WSDL ==============
> > ><?xml version="1.0" encoding="UTF-8"?>
> > ><wsdl:definitions
> > targetNamespace="urn:OtherTestEJB"
> >
> 
=== message truncated ===

> ATTACHMENT part 2 application/zip name=source files
with wsdl.zip
 

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.

Re: [axis] Serializing embedded complex types

Posted by Balaji D L <ba...@yahoo.com>.
Axis 1.1, well upgrading to axis 1.1 will not be big
problem. Initially i had 1.0 then rc1, then rc2 and
now 1.1(final).

 --- Rhett.DeWall@sybase.com wrote: > 
> Are you using Axis 1.0 or 1.1?
> 
> 
> 
> 
>                                                     
>                                                     
> 
>                       Balaji D L                    
>                                                     
> 
>                       <balajidl@yahoo.c        To:  
>     axis-user@ws.apache.org                         
> 
>                       om>                      cc:  
>                                                     
> 
>                                               
> Subject:  Re: [axis] Serializing embedded complex
> types    
>                       06/26/2003 09:36              
>                                                     
> 
>                       AM                            
>                                                     
> 
>                       Please respond to             
>                                                     
> 
>                       axis-user                     
>                                                     
> 
>                                                     
>                                                     
> 
>                                                     
>                                                     
> 
> 
> 
> 
> hi Rhett,
>    Try to run this attached example that I had
> modified to return a object(Order_) containing
> object(ship).Its working fine for me under java and
> axis. Then tell us whether you are able to consume
> it
> using stimulators like WSInvoker,WebserviceStudio
> etc.,
> 
> the wsdd setting is
> 
> <service name="OrderProcessors" provider="java:RPC">
>              <parameter name="className"
> value="samples.userguide.example5.BeanServices"/>
>              <parameter name="allowedMethods"
> value="*"/>
>              <beanMapping qname="myNS:Order_"
> xmlns:myNS="urn:BeanServices"
>
languageSpecificType="java:samples.userguide.example5.Order_"/>
>              <beanMapping qname="myNS:Ship"
> xmlns:myNS="urn:BeanServices"
>
languageSpecificType="java:samples.userguide.example5.Ship"/>
> </service>
> 
> Regards
> Balaji
> 
>  --- Rhett.DeWall@sybase.com wrote: >
> > (See attached file: deploy.wsdd)
> >
> >                       "Sameer
> >
> >
> >                       Bombatkar"               To:
> >     axis-user@ws.apache.org
> >
> >                       <sameer_bom@hotma        cc:
> >
> >
> >                       il.com>
> > Subject:  Re: [axis] Serializing embedded complex
> > types
> >
> >
> >
> >                       06/26/2003 02:57
> >
> >
> >                       AM
> >
> >
> >                       Please respond to
> >
> >
> >                       axis-user
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Could you also post your deploy.wsdd and the class
> > which  all the
> > operations
> > for youre web-service??
> >
> >
> >
> > Sameer.
> >
>
.....................................................
> > "If a server crashes in a server farm and no one
> > pings it, does it still
> > cost four figures to fix?"
> >
> >
> >
> >
> >
> >
> > >From: Rhett.DeWall@sybase.com
> > >Reply-To: axis-user@ws.apache.org
> > >To: <ax...@xml.apache.org>
> > >Subject: [axis]  Serializing embedded complex
> types
> > >Date: Wed, 25 Jun 2003 15:51:18 -0600
> > >MIME-Version: 1.0
> > >Received: from apache.org ([208.185.179.12]) by
> > mc7-f15.law1.hotmail.com
> > >with Microsoft SMTPSVC(5.0.2195.5600); Wed, 25
> Jun
> > 2003 14:51:42 -0700
> > >Received: (qmail 78050 invoked by uid 500); 25
> Jun
> > 2003 21:51:16 -0000
> > >Received: (qmail 77992 invoked by uid 500); 25
> Jun
> > 2003 21:51:16 -0000
> > >X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
> > >Mailing-List: contact
> axis-user-help@ws.apache.org;
> > run by ezmlm
> > >Precedence: bulk
> > >list-help: <ma...@ws.apache.org>
> > >list-unsubscribe:
> > <ma...@ws.apache.org>
> > >list-post: <ma...@xml.apache.org>
> > >Delivered-To: mailing list
> axis-user@ws.apache.org
> > >Delivered-To: apmail-xml-axis-user@xml.apache.org
> > >X-Mailer: Lotus Notes Release 5.0.8  June 18,
> 2001
> > >Message-ID:
> >
> <OF...@sybase.com>
> > >X-MIMETrack: Serialize by Router on
> > BoulderNotes2/SYBASE(Release 5.0.12
> > >|February 13, 2003) at 06/25/2003 03:51:18 PM
> > >X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> > >Return-Path:
> >
>
axis-user-return-15952-sameer_bom=hotmail.com@ws.apache.org
> > >X-OriginalArrivalTime: 25 Jun 2003 21:51:43.0343
> > (UTC)
> > >FILETIME=[F74E97F0:01C33B63]
> > >
> > >Has anyone had luck with embedded complex types
> > with Axis.  Taking the
> > >Address example one step further, I have WSDL
> > describes an address to have
> > >a phone that is a complex type, such as:
> > >
> > >   <EmployeeVO>
> > >     <firstName>John</firstName>
> > >     <lastName>Doe</lastName>
> > >     <phone>
> > >        <area>999</area>
> > >        <location>9999</location>
> > >        <prefix>999</prefix>
> > >     </phone>
> > >   </EmployeeVO>
> > >
> > >The WSDL, SOAP request, SOAP response and Java
> code
> > follow.  Basically,
> > >AXIS cannot serialize the response because it
> > interprets "EmployeeVO" as
> > >containing "area"...
> > >
> > >============= WSDL ==============
> > ><?xml version="1.0" encoding="UTF-8"?>
> > ><wsdl:definitions
> > targetNamespace="urn:OtherTestEJB"
> >
> 
=== message truncated ===

> ATTACHMENT part 2 application/zip name=source files
with wsdl.zip
 

http://mobile.yahoo.com.au - Yahoo! Mobile
- Check & compose your email via SMS on your Telstra or Vodafone mobile.