I tested the example with latest download (March 7). Everything appears to
work...
Java2WSDL produces a wsdl file
WSDL2Java produces stubs which compile
However, there remain two problems:
1. The example client does not work. (It returns null.) (This client does
not use the stubs.)
2. If you feed the wsdl file into a verifier, you get this:
There is an error in XML document (47, 50). --->
System.InvalidOperationException: Namespace prefix 'intf:urn' is not
defined.
I used this wsdl verifier:
http://www.gotdotnet.com/team/tools/web_svc/default.aspx
Cheers.
Stan
----- Original Message -----
From: "Stan Jordan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 01, 2002 3:07 PM
Subject: WSDL2Java issue (samples/attachments/EchoAttachmentsService) Or
might be Java2WSDL issue
> If you guys are working on WSDL2Java emitter next week, you might want to
> look at this example. I was able to create wsdl file from the service,
but
> WSDL2Java produces IOException below. Maybe the problem is with the
> Java2WSDL emitter (which I used to create the wsdl file), I dunno.
> Cheers.
> Stan
> I used nightly download March 1.
> ------------------------
> java.io.IOException: Type urn:EchoAttachmentsService:DataHandler is
> referenced but not defined.
> at org.apache.axis.wsdl.toJava.SymbolTable.checkForUndefined(Unknown
> Source)
> at org.apache.axis.wsdl.toJava.SymbolTable.add(Unknown Source)
> at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
> at org.apache.axis.wsdl.toJava.Emitter.emit(Unknown Source)
> at org.apache.axis.wsdl.WSDL2Java.emit(Unknown Source)
> at org.apache.axis.wsdl.WSDL2Java.main(Unknown Source)
> ------------------------
> ----- Original Message -----
> From: "Tom Jordahl" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, March 01, 2002 1:22 PM
> Subject: RE: document or message style SOAP
>
>
> >
> > The WSDL now says "document" if the service is document.
> > Keep in mind what you are using is the definition of "not done yet".
> > That's why its still called "Alpha".
> > :-)
> >
> > --
> > Tom Jordahl
> >
> >
> > -----Original Message-----
> > From: Stan Jordan [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 01, 2002 2:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: document or message style SOAP
> >
> >
> > Tom...
> > My only concern is interop, ie, when a .NET client looks at the WSDL, if
> he
> > sees style="rpc" when the service is really doing literal/document, does
> he
> > get confused and is unable to use the service? I'll try the new CVS
> > download and see what happens. Thanks.
> > Stan
> >
> > ----- Original Message -----
> > From: "Frydl, Josef" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, March 01, 2002 10:19 AM
> > Subject: RE: document or message style SOAP
> >
> >
> > > Thanks Tom , I did at it looks like proxy and stub were generated
> > correctly
> > >
> > > -----Original Message-----
> > > From: Tom Jordahl [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, March 01, 2002 12:25 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: RE: document or message style SOAP
> > >
> > >
> > >
> > > Stan, Josef,
> > >
> > > Much work was done in this area (particularly the generated WSDL) this
> > week.
> > > Try with the current CVS tree and see how it looks. Look for this
stuff
> > > to stabilize more next week.
> > >
> > > By the way, if the WSDL has document/literal in it, the Java code
> > > generated still works the same as if it were rpc/encoded. i.e. you
> > > get data types and a java stub class which you can use to invoke the
> > > operations of the server. As a user, you shouldn't have to care what
> > > the WSDL said. At least that is the idea.
> > >
> > > --
> > > Tom Jordahl
> > > Macromedia
> > >
> > >
> > > -----Original Message-----
> > > From: Frydl, Josef [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 27, 2002 3:08 PM
> > > To: '[EMAIL PROTECTED]'
> > > Subject: RE: document or message style SOAP
> > >
> > >
> > > Thanks Stan,
> > > That would be my point , I assume that wsdl file is just there and
code
> > was
> > > generated by hand,
> > > also can I invoke wsdl2java on just wsdl file?
> > > Thanks Josef
> > >
> > > -----Original Message-----
> > > From: Stan Jordan [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 27, 2002 2:57 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: document or message style SOAP
> > >
> > >
> > > Josef...
> > > Since early Feb, there is a message example in the nightly download.
> You
> > > can create a WSDL file (pasted below) for this example in the usual
way.
> > An
> > > interesting "feature" is that this WSDL file says style="rpc" even
> though
> > > it's doing messaging (see below). Frankly, I am puzzled.
> > > Cheers.
> > > Stan
> > > ---------------------------------------------------
> > > <?xml version="1.0" encoding="UTF-8"?>
> > > <wsdl:definitions
> > > targetNamespace="http://localhost:8080/axis/services/MessageService"
> > > xmlns="http://schemas.xmlsoap.org/wsdl/"
> > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
> > > xmlns:impl="http://localhost:8080/axis/services/MessageService-impl"
> > > xmlns:intf="http://localhost:8080/axis/services/MessageService"
> > > xmlns:tns1="http://xml.apache.org/xml-soap"
> > > xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> > > xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"><types><schema
> > > targetNamespace="http://xml.apache.org/xml-soap"
> > > xmlns="http://www.w3.org/2001/XMLSchema"><complexType
> > > name="Vector"><complexContent><extension
> > >
> >
>
base="SOAP-ENC:Array"><all/></extension></complexContent></complexType><elem
> > > ent name="Vector" nillable="true" type="tns1:Vector"/></schema><schema
> > > targetNamespace="http://localhost:8080/axis/services/MessageService"
> > > xmlns="http://www.w3.org/2001/XMLSchema"><complexType
> > > name="ArrayOf_tns1_Element"><complexContent><restriction
> > > base="SOAP-ENC:Array"><attribute ref="SOAP-ENC:arrayType"
> > >
> >
>
wsdl:arrayType="tns1:Element[]"/></restriction></complexContent></complexTyp
> > > e><element name="ArrayOf_tns1_Element" nillable="true"
> > > type="intf:ArrayOf_tns1_Element"/></schema></types>
> > > <wsdl:message name="echoElementsResponse">
> > > <wsdl:part name="return" type="intf:ArrayOf_tns1_Element"/>
> > > </wsdl:message>
> > > <wsdl:message name="echoElementsRequest">
> > > <wsdl:part name="in1" type="tns1:Vector"/>
> > > </wsdl:message>
> > > <wsdl:portType name="MessageService">
> > > <wsdl:operation name="echoElements" parameterOrder="in1">
> > > <wsdl:input message="intf:echoElementsRequest"/>
> > > <wsdl:output message="intf:echoElementsResponse"/>
> > > </wsdl:operation>
> > > </wsdl:portType>
> > > <wsdl:binding name="MessageServiceSoapBinding"
> > type="intf:MessageService">
> > > <wsdlsoap:binding style="rpc"
> > > transport="http://schemas.xmlsoap.org/soap/http"/>
> > > <wsdl:operation name="echoElements">
> > > <wsdlsoap:operation soapAction="" style="rpc"/>
> > > <wsdl:input>
> > > <wsdlsoap:body
> > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > >
namespace="http://localhost:8080/axis/services/MessageService"
> > > use="encoded"/>
> > > </wsdl:input>
> > > <wsdl:output>
> > > <wsdlsoap:body
> > > encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
> > >
namespace="http://localhost:8080/axis/services/MessageService"
> > > use="encoded"/>
> > > </wsdl:output>
> > > </wsdl:operation>
> > > </wsdl:binding>
> > > <wsdl:service name="MessageServiceService">
> > > <wsdl:port binding="intf:MessageServiceSoapBinding"
> > > name="MessageService">
> > > <wsdlsoap:address
> > > location="http://localhost:8080/axis/services/MessageService"/>
> > > </wsdl:port>
> > > </wsdl:service>
> > > </wsdl:definitions>
> > > ---------------------------------------------------
> > > ----- Original Message -----
> > > From: "Frydl, Josef" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, February 27, 2002 12:15 PM
> > > Subject: document or message style SOAP
> > >
> > >
> > > > Is there any utility line wsdl2java which can be used to generate
> stubs
> > > and
> > > > skeletons for document style SOAP. That is when I specify in wsdl:
> > > > <soap:binding style="document"
> > > > transport="http://schemas.xmlsoap.org/soap/http"/>
> > > >
> > > > Thanks
> > > > Josef Frydl
> > > > [EMAIL PROTECTED]
> > > > 410-345-8511
> > > >
> > > >
> >
>