style="wrapped" + use="encoded" is not an allowed combination. Change use to use="literal".

Anne

On 4/17/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Anne,

I did include <parameter name="dotNetSoapEncFix" value="true"/> as a service parameter but the encoding type did not appear to change.  It still looks like:

<wsdl:part name="in0" type="soapenc:string"/> rather than <wsdl:part name="in0" type="xsd:string"/> .

Was there something I missed?

I am using :provider="java:RPC" style="wrapped" use="encoded".

Regards,

Joshua






"Anne Thomas Manes" <[EMAIL PROTECTED]>

04/17/2006 02:32 PM
Please respond to axis-user

       
        To:        [email protected]
        cc:        
        Subject:        Re: changing xmlns:soapenc from " http://schemas.xmlsoap.org/soap/encoding/" to "http://www.w3.org/2001/XMLSchema" fixes my problem?



Axis generates rpc/encoded style services by default. The SOAP spec ifsnot entirely clear on this point, but it certainly leads to the conclusion that when using SOAP encoding, messages should use SOAP encoding types rather than the primitive XML Schema types -- e.g., the message parts are defined like so:

<wsdl:message name="methodRequest">
 <wsdl:part name="in0" type="soapenc:string"/>
 <wsdl:part name="in1" type="soapenc:int"/>
</wsdl:message>


where xmlns:soapenc="
http://schemas.xmlsoap.org/soap/encoding/ ".

Unfortunately, a number of SOAP implementations don't follow this reasoning, and instead they require use of the XML Schema types, like so:

<wsdl:message name="methodRequest">
 <wsdl:part name="in0" type="xsd:string"/>
 <wsdl:part name="in1" type="xsd:int"/>
</wsdl:message>


You can configure Axis to use XML Schema primitive types by including

<parameter name="dotNetSoapEncFix" value="true"/>

in your WSDD.

Alternatively (and for better interoperability results in general), switch to "wrapped" document/literal style.

Anne

On 4/17/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:

All,


I am using weblogic 9's test client generator to generate a simple UI for business analysts to test the functionality of my web service.  Trouble is, the WSDL file that AXIS generates causes this application to blow up with the following exception:
 
WsdlParseFailedException: Could not find schema for namespace
http://schemas.xmlsoap.org/soap/encoding/

I am a little confused by this.  When I change the xmlns:soapenc value in the line below to "
http://www.w3.org/2001/XMLSchema"  (see below), it works like a champ.  I don't profess to know everything about xml.  Can someone please explain this to me?

Regards,


Joshua




*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information. If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited. If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************




Reply via email to