users@jax-ws.java.net

Re: Problem consuming jax ws web service with flash 8

From: Jitendra Kotamraju <Jitendra.Kotamraju_at_Sun.COM>
Date: Thu, 17 Aug 2006 14:21:49 -0700

Branden Root wrote:

> Hello,
>
> I'm currently trying to create a web service with jax-ws using
> Netbeans 5.5. I apologize in advance for posting if this is not the
> correct place to ask, but I figured that since jax-ws was doing the
> creation perhaps someone here could help :)
> My problem is that web services created using jax-ws are unable to be
> consumed with Flash 8. The error in flash is "WSDL.BadElement, Element
> tns:addResponse not resolvable". Any other web service I've tried
> (amazon's, ebay's, etc etc etc) all work fine in Flash, only my test
> web services do not.
> I've attached my WSDL file in this email, perhaps it will illuminate
> any problems. I appreciate in advance anyone taking the time to help!

First check the imported schema locations in the WSDL from browser. What
I heard on this mailinglist is that flash doesn't interpret xsd:import.
It requires that the schema documents to be inlined in the WSDL.

Jitu

>
>
>
> Thanks,
> Branden Root
> Senior Developer | 206.575.3740
> Portent Interactive
> An Internet Marketing Agency
> http://www.portentinteractive.com
>
>
>
>------------------------------------------------------------------------
>
><?xml version="1.0" encoding="UTF-8"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://calc.me.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://calc.me.org/" name="CalculatorWSService">
> <types>
> <xsd:schema>
> <xsd:import namespace="http://calc.me.org/" schemaLocation="http://192.168.1.32:8080/BellaWS/CalculatorWSService/__container$publishing$subctx/WEB-INF/wsdl/CalculatorWSService_schema1.xsd" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"/>
> </xsd:schema>
> </types>
> <message name="add">
> <part name="parameters" element="tns:add"/>
> </message>
> <message name="addResponse">
> <part name="parameters" element="tns:addResponse"/>
> </message>
> <portType name="CalculatorWS">
> <operation name="add">
> <input message="tns:add"/>
> <output message="tns:addResponse"/>
> </operation>
> </portType>
> <binding name="CalculatorWSPortBinding" type="tns:CalculatorWS">
> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
> <operation name="add">
> <soap:operation soapAction=""/>
> <input>
> <soap:body use="literal"/>
> </input>
> <output>
> <soap:body use="literal"/>
> </output>
> </operation>
> </binding>
> <service name="CalculatorWSService">
> <port name="CalculatorWSPort" binding="tns:CalculatorWSPortBinding">
> <soap:address location="http://192.168.1.32:8080/BellaWS/CalculatorWSService" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"/>
> </port>
> </service>
></definitions>
>
>
>
> ------------------------------------------------------------------------
>
>