axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dino Chiesa" <din...@microsoft.com>
Subject RE: How to make .NET/AXIS Client add namespace to soap message elements
Date Fri, 01 Apr 2005 15:28:55 GMT
 
Yes! 

Example

 <wsdl:types>

  <schema
    elementFormDefault="qualified"
    targetNamespace="http://ws.as.com/schemas/ds"
    xmlns="http://www.w3.org/2001/XMLSchema">

  <complexType name="ORDER">
   <sequence>
    <element name="ORDERNUMBER" type="xsd:int"/>
   </sequence>
  </complexType>
  </schema>

  <schema
    elementFormDefault="qualified"
    targetNamespace="http://ws.as.com/wsdl/ds"
    xmlns="http://www.w3.org/2001/XMLSchema">

  <!--  request/response elements -->

  <element name="getOrderDetails">
   <complexType>
    <sequence>
     <element name="order" type="myns:ORDER"/>
    </sequence>
   </complexType>
  </element>

  <element name="getOrderDetailsResponse">
   <complexType>
    <sequence>
     <element name="getOrderDetailsReturn" type="myns:Whatever"/>
    </sequence>
   </complexType>
  </element>
  </schema>
...


-----Original Message-----
From: Anne Thomas Manes [mailto:atmanes@gmail.com] 
Sent: Friday, April 01, 2005 10:09 AM
To: axis-user@ws.apache.org; babloosony
Subject: Re: How to make .NET/AXIS Client add namespace to soap message
elements

If you write the WSDL, then you control the message structure. Define
the ORDER element in a separate schema with the targetNamespace that you
desire.

Anne

On Apr 1, 2005 8:51 AM, babloosony <babloosony@gmail.com> wrote:
> Hi All,
> 
> Say how can I below soap message from the client (can be .NET or AXIS)
:
> 
> <soapenv:Envelope
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>   <soapenv:Body>
>      <getOrderDetails xmlns="http://ws.as.com/wsdl/ds">
>         <ORDER>
>            <ORDERNUMBER>999999999</ORDERNUMBER>
>         </ORDER>
>      </getOrderDetails>
>   </soapenv:Body>
> </soapenv:Envelope
> 
> Now, in the above soap message I want to have this namespace 
> declaration "xmlns="http://ws.as.com/schemas/ds"
> like for ORDER element
> <ORDER "xmlns="http://ws.as.com/schemas/ds">
> 
> Is there any configuration that I can in any of the below to achieve
this :
> 1. .NET Framework 1.1
> 2. AXIS 1.2 RC2
> 3. in WSDL
> 
> Is there anything that I can configure in my WSDL before giving to 
> client's so that they can always send namespace for the soap message 
> elements. Please suggest.
> 
> Regards,
> Kumar.
>

Mime
View raw message