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 Claude <cl...@bellsouth.net> on 2008/04/21 05:01:14 UTC

Is there a way to stop java type mapping appearing in soap message?

I have the following return:

<soapenv:Envelope 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
  <soapenv:Body>
     <getCampaignInfoResponse xmlns="http://www.openuri.org/">
        <return type="org.openuri.www.CampaignInfo">
           <campaignDescription>Test</campaignDescription>
           <campaignID>10101</campaignID>
        </return>
     </getCampaignInfoResponse>
  </soapenv:Body>
</soapenv:Envelope>

I want to get rid of the <return type="org.openuri.www.CampaignInfo to 
just a type of CampaignInfo which I thought I described in my wsdl, but 
obviously wrong, can someone help me out. thanks... here's the wsdl... 
portion of concern only:

           <xs:element name="getCampaignInfo">
               <xs:complexType>
                   <xs:sequence>
                       <xs:element minOccurs="0" name="customerID" 
nillable="true" type="xs:string"/>
                       <xs:element minOccurs="0" name="advertiserNumber" 
nillable="true" type="xs:string"/>
                   </xs:sequence>
               </xs:complexType>
           </xs:element>
           <xs:element name="getCampaignInfoResponse">
       <xs:complexType>
                   <xs:sequence>
                       <xs:element maxOccurs="unbounded" minOccurs="0" 
name="getCampaignInfoResult" nillable="true" type="ns:CampaignInfo"/>
                   </xs:sequence>
            </xs:complexType>     </xs:element>
         <xs:complexType name="CampaignInfo">
           <xs:sequence>
             <xs:element minOccurs="0" name="campaignDescription" 
nillable="true" type="xs:string"/>
             <xs:element minOccurs="0" name="campaignID" nillable="true" 
type="xs:string"/>
           </xs:sequence>
         </xs:complexType>
       </xs:schema>


Claude

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org