Hello again!

It looks like Axis has some trouble with annotations.

If you re-run Test2 with the attached files you get style="document"
Is my annotation wrong !?

Cheers,
Are T. Tysnes

-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED] 
Sent: 5. september 2004 03:16
To: [EMAIL PROTECTED]
Subject: RE: Questions about Wrapped/UnWrapped Document/Literal


In Test1.wsdl, the wrapper element name (SomeLevelW) is not the same as the
operation name (SomeLevel), therefore Axis generates the service as
style="document". If you change the operation name to SomeLevelW, Axis will
generate it as style="wrapped".

In Test2.wsdl, the wrapper element (SomeLevel) is the same as the operation
name (SomeLevel), therefore Axis generates the service as style="wrapped".

- Anne

-----Original Message-----
From: Tysnes Are Thobias [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 04, 2004 1:21 PM
To: '[EMAIL PROTECTED]'
Subject: Questions about Wrapped/UnWrapped Document/Literal


Hello!

I have some questions about Wrapped/UnWrapped Document/Literal style in Axis
1.2beta2

When I run:

java org.apache.axis.wsdl.WSDL2Java -s "Test1.wsdl" --typeMappingVersion 1.2

deploy.wsdd says style="document" and the Interface looks like this:

public interface SomeLevelInterface extends java.rmi.Remote {
    public com.test.www.test._SomeLevelResponseW
someLevel(com.test.www.test._SomeLevelW parameters) throws
java.rmi.RemoteException; }

When I run:

java org.apache.axis.wsdl.WSDL2Java -s "Test2.wsdl" --typeMappingVersion 1.2

deploy.wsdd says style="wrapped" and the Interface looks like this:

public interface SomeLevelInterface extends java.rmi.Remote {
    public java.lang.String someLevel(java.lang.String someLevelFoo,
java.lang.String someLevelBar) throws java.rmi.RemoteException; }

Question 1:

The difference in these two WSDL's are W prefixed to the Type names in
Test1.xsd. And I don't understand why Axis choose to make one Wrapped and
the other UnWrapped.

Question 2:

In my view.. style="document" look Wrapped.. the parameters are wrapped in a
Response and Request Wrapper-Class. And style="wrapped" looks UnWrapped.
What am I missing ?

Hope someone (Anne maybe ? :o) have some time to enlighten me

Cheers & Happy Weekend!
Are T. Tysnes


Attachment: Test2.xsd
Description: Binary data

Attachment: Test2.wsdl
Description: Binary data

Reply via email to