Thanks for the reply.
I have attached the WSDL.

-Suresh



Dan Kamins wrote:

XML-ish characters (<, >, etc.) are *supposed* to get encoded when embedded as strings in XML. If the .NET server is expecting something else, then it is likely that it is specifying a type other than xsd:string.

Post your WSDL so we can see how the service describes its expectations. If it is not xsd:string, it could be anyType, or maybe mixed content. See below. It could be that Axis is misunderstanding the WSDL and treating something else as a String when it shouldn't. But let's see.

-

anyType is unspecified content type.

Schema looks like:
 <xsd:element name="anything"/>
- or (equivalent) -
 <xsd:element name="anything" type="xsd:anyType"/>

See:
http://www.w3.org/TR/xmlschema-0/#anyType

-

And "Mixed Content" which includes HTML-ish marked up text.

Schema looks like:
 <xsd:element name="letterBody">
  <xsd:complexType mixed="true">
   ...

See: http://www.w3.org/TR/xmlschema-0/#mixedContent

--
Dan Kamins

On Tue, 15 Jul 2003 19:33:27 -0700, Suresh Avadhanula wrote:


Suresh Avadhanula wrote:



Hi,
I am using axis to send a SOAP message to a .NET Server. It takes 2

parameters. First param is a integer, second is a XML String. A xml
is
passed as string.
When I send the message via axis, the xml gets encoded, ie <
becomes
lt , > becomes gt etc.

Can I disables encoding? .NET server expects palin xml like <abc>
<cde> some_valu</cde></abc> as param in the SOAP Body.

Any help is greatly appreciated.

Thanks
Suresh













<?xml version="1.0" encoding="utf-8"?>
<definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"; xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"; xmlns:s="http://www.w3.org/2001/XMLSchema"; xmlns:s0="http://tempuri.org/"; xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"; xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/"; xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"; targetNamespace="http://tempuri.org/"; xmlns="http://schemas.xmlsoap.org/wsdl/";>
  <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/";>
      <s:element name="FawsSubmit">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="clientId" type="s:int" />
            <s:element minOccurs="0" maxOccurs="1" name="xml" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="FawsSubmitResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="FawsSubmitResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="string" nillable="true" type="s:string" />
    </s:schema>
  </types>
  <message name="FawsSubmitSoapIn">
    <part name="parameters" element="s0:FawsSubmit" />
  </message>
  <message name="FawsSubmitSoapOut">
    <part name="parameters" element="s0:FawsSubmitResponse" />
  </message>
  <message name="FawsSubmitHttpGetIn">
    <part name="clientId" type="s:string" />
    <part name="xml" type="s:string" />
  </message>
  <message name="FawsSubmitHttpGetOut">
    <part name="Body" element="s0:string" />
  </message>
  <message name="FawsSubmitHttpPostIn">
    <part name="clientId" type="s:string" />
    <part name="xml" type="s:string" />
  </message>
  <message name="FawsSubmitHttpPostOut">
    <part name="Body" element="s0:string" />
  </message>
  <portType name="WSMISMO21Soap">
    <operation name="FawsSubmit">
      <input message="s0:FawsSubmitSoapIn" />
      <output message="s0:FawsSubmitSoapOut" />
    </operation>
  </portType>
  <portType name="WSMISMO21HttpGet">
    <operation name="FawsSubmit">
      <input message="s0:FawsSubmitHttpGetIn" />
      <output message="s0:FawsSubmitHttpGetOut" />
    </operation>
  </portType>
  <portType name="WSMISMO21HttpPost">
    <operation name="FawsSubmit">
      <input message="s0:FawsSubmitHttpPostIn" />
      <output message="s0:FawsSubmitHttpPostOut" />
    </operation>
  </portType>
  <binding name="WSMISMO21Soap" type="s0:WSMISMO21Soap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http"; style="document"  />
    <operation name="FawsSubmit">
      <soap:operation soapAction="http://tempuri.org/FawsSubmit"; style="document" />
      <input>
        <soap:body use="literal" />
      </input>
      <output>
        <soap:body use="literal" />
      </output>
    </operation>
  </binding>
  <binding name="WSMISMO21HttpGet" type="s0:WSMISMO21HttpGet">
    <http:binding verb="GET" />
    <operation name="FawsSubmit">
      <http:operation location="/FawsSubmit" />
      <input>
        <http:urlEncoded />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>
    </operation>
  </binding>
  <binding name="WSMISMO21HttpPost" type="s0:WSMISMO21HttpPost">
    <http:binding verb="POST" />
    <operation name="FawsSubmit">
      <http:operation location="/FawsSubmit" />
      <input>
        <mime:content type="application/x-www-form-urlencoded" />
      </input>
      <output>
        <mime:mimeXml part="Body" />
      </output>
    </operation>
  </binding>
  <service name="WSMISMO21">
    <port name="WSMISMO21Soap" binding="s0:WSMISMO21Soap">
      <soap:address location="https://test.ors.firstam.com/ors/WSMISMO21.asmx"; />
    </port>
    <port name="WSMISMO21HttpGet" binding="s0:WSMISMO21HttpGet">
      <http:address location="https://test.ors.firstam.com/ors/WSMISMO21.asmx"; />
    </port>
    <port name="WSMISMO21HttpPost" binding="s0:WSMISMO21HttpPost">
      <http:address location="https://test.ors.firstam.com/ors/WSMISMO21.asmx"; />
    </port>
  </service>
</definitions>

Reply via email to