Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 64671 invoked from network); 8 Oct 2004 09:42:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 8 Oct 2004 09:42:58 -0000 Received: (qmail 73924 invoked by uid 500); 8 Oct 2004 09:40:15 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 73778 invoked by uid 500); 8 Oct 2004 09:40:12 -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: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 73700 invoked by uid 99); 8 Oct 2004 09:40:11 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [213.239.200.109] (HELO srv4.xcellcom.de) (213.239.200.109) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 08 Oct 2004 02:40:07 -0700 Received: from localhost (localhost [127.0.0.1]) by srv4.xcellcom.de (Postfix) with ESMTP id 7A2851FB50 for ; Fri, 8 Oct 2004 11:39:56 +0200 (CEST) Received: from srv4.xcellcom.de ([127.0.0.1]) by localhost (srv4 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25468-02 for ; Fri, 8 Oct 2004 11:39:55 +0200 (CEST) Received: from theurich (unknown [62.138.196.174]) by srv4.xcellcom.de (Postfix) with ESMTP id 337551F95E for ; Fri, 8 Oct 2004 11:39:55 +0200 (CEST) From: "Florian Theurich" To: Subject: Differences in WSDLs Date: Fri, 8 Oct 2004 11:39:46 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C4AD2B.83560C30" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcStGr8CQjgOp458TLqgwHGNvGkWXw== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20041008093955.337551F95E@srv4.xcellcom.de> X-Virus-Scanned: by amavisd-new at xcellcom.de X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C4AD2B.83560C30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit hi folks, I created a web service returning an array of beans. The bean is called 'Con', the service itself is called 'ConService'. The corresponding entry in my server-config.wsdd looks like the following: For the xmlns:ns entries in both and I chose an arbitrary address that does not really exist (you can't access it from a web browser, perhaps this is my first mistake?) The wsdl-file then looks like this: . As is changed the xmlns:ns entries to the address the web service is actually located the wsdl looks like this . I marked the differences in bold, perhaps there are more less obvious deviations?? Could someone explain me what I'm doing wrong or what the right choice is? Either way when I'm trying to create a web service control in BEA Workshop 8.1 based on both wsdl's shown above, it says that the 'operations cannot be called' and that 'Schema type null is undefined'! So there is probably more to fix that I originally thought. Any thoughts are highly appreciated Thanks Flo ------=_NextPart_000_0000_01C4AD2B.83560C30 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

hi folks,

 

I created a web service returning an array of = beans. The bean is called ‘Con’, the service itself is called ‘ConService’.

 

The corresponding entry in my = server-config.wsdd looks like the following:

 

<service name=3D"ConService" provider=3D"java:RPC">

  =             &= nbsp;         <parameter = name=3D"allowedMethods" value=3D"*" />

  =             &= nbsp;         <parameter name=3D"className" value=3D"com.xcell.ConService" = />

 

        = ;            =     <beanMapping qname=3D"ns:Con" xmlns:ns=3D"http://xxx/webservices" =

        = ;            =             &= nbsp;  languageSpecificType=3D"java:com.xcell.Con" />

        = ;            =    

        = ;            =     <typeMapping qname=3D"ns:ArrayOfCon"

        = ;            =             &= nbsp;  = xmlns:ns=3D"http://xxx/webservices"

    =             &= nbsp;           &n= bsp;      = type=3D"java:com.xcell.Con[]"

        = ;            =             &= nbsp;  = serializer=3D"org.apache.axis.encoding.ser.ArraySerializerFactory&qu= ot;

        = ;            =             &= nbsp;  = deserializer=3D"org.apache.axis.encoding.ser.ArrayDeserializerFactor= y"

        = ;            =             &= nbsp;  = encodingStyle=3D"http://schemas.xmlsoap.org/soap/encoding/" />

        = ;   

</service>

 

For the xmlns:ns entries in both = <beanMapping> and <typemapping> I chose an arbitrary address that does not = really exist (you can’t access it from a web browser, perhaps this is my first mistake?)

 

The wsdl-file then looks like = this:

 

<types>

  <schema xmlns=3D"http://www.w3.org/2001/XMLSchema" targetNamespace=3D”xxxrealAddressxxx">

   <import namespace=3D"http://xxx/webservices"/>=

   <import namespace=3D"http://schemas.xmlsoap.org/soap/encoding/"/>

   <complexType = name=3D"ArrayOf_soapenc_string">

    = <complexContent>

     <restriction base=3D"soapenc:Array">

      <attribute = ref=3D"soapenc:arrayType" wsdl:arrayType=3D"soapenc:string[]"/>

     = </restriction>

    = </complexContent>

   = </complexType>

  </schema>

  <schema = xmlns=3D"http://www.w3.org/2001/XMLSchema" targetNamespace=3D"http://xxx/webservices= ">

   <import = namespace=3D"http://xxxrealAdressxxx"/>

   <import namespace=3D"http://schemas.xmlsoap.org/soap/encoding/"/>

   <complexType = name=3D"Con">

    = <sequence>

     <element = name=3D"abbreviation" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"city" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"country" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"dateFrom" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"dateTo" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"venue" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"website" nillable=3D"true" = type=3D"soapenc:string"/>

    = </sequence>

   = </complexType>

   <complexType = name=3D"ArrayOfCon">

    = <complexContent>

     <restriction base=3D"soapenc:Array">

      <attribute = ref=3D"soapenc:arrayType" wsdl:arrayType=3D"tns1:Con[]"/>

=

     = </restriction>

    = </complexContent>

   = </complexType>

  = </schema>

 </types>

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

<wsdl:part name=3D"in0" = type=3D"xsd:int"/>

</wsdl:message><= /p>

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

<wsdl:part name=3D"getConInfoReturn" type=3D"tns1:ArrayOfCon"/= >

</wsdl:message><= /p>

 

As is changed the xmlns:ns entries to the = address the web service is actually located the wsdl looks like = this

 

<types>

  <schema xmlns=3D"http://www.w3.org/2001/XMLSchema" targetNamespace=3D”xxxrealAddressxxx">

   <import namespace=3D"http://schemas.xmlsoap.org/soap/encoding/"/>

   <complexType name=3D"ArrayOf_soapenc_string">

    = <complexContent>

     <restriction base=3D"soapenc:Array">

      <attribute = ref=3D"soapenc:arrayType" wsdl:arrayType=3D"soapenc:string[]"/>

     = </restriction>

    = </complexContent>

   = </complexType>

   <complexType = name=3D"Con">

    = <sequence>

      <element = name=3D"abbreviation" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"city" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"country" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"dateFrom" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"dateTo" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"venue" nillable=3D"true" = type=3D"soapenc:string"/>

     <element = name=3D"website" nillable=3D"true" = type=3D"soapenc:string"/>

    = </sequence>

   = </complexType>

   <complexType = name=3D"ArrayOfCon">

    = <complexContent>

     <restriction base=3D"soapenc:Array">

      <attribute = ref=3D"soapenc:arrayType" wsdl:arrayType=3D"impl:Con[]"/>

=

     = </restriction>

    = </complexContent>

   = </complexType>

  = </schema>

 </types>

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

      <wsdl:part = name=3D"in0" type=3D"xsd:int"/>

 </wsdl:message>

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

      <wsdl:part = name=3D"getConInfoReturn" type=3D"impl:ArrayOfCon"/= >

 </wsdl:message>

 

I marked the differences in bold, perhaps = there are more less obvious deviations??

 

Could someone explain me what I’m doing = wrong or what the right choice is?

 

Either way when I’m trying to create a = web service control in BEA Workshop 8.1 based on both wsdl’s shown = above, it says that the ‘operations cannot be called’ and that = ‘Schema type null is undefined’!

 

So there is probably more to fix that I = originally thought…

 

Any thoughts are highly = appreciated

Thanks

Flo

 

------=_NextPart_000_0000_01C4AD2B.83560C30--