-
1. Re: NullpointerException in Axis
thomas.diesler Oct 4, 2004 8:25 AM (in response to robisz)Yes, it seems the wsdl is in document/literal style.
I want to access a remote webservice and the wsdl comes from
an external source... Does it means I won't be able to use it? -
2. Re: NullpointerException in Axis
thomas.diesler Oct 4, 2004 11:36 AM (in response to robisz)what version of jboss?
-
-
4. Re: NullpointerException in Axis
yaaarrrgg Oct 4, 2004 4:14 PM (in response to robisz)i had some problems with web services in 4.0 as well. i used the wsdl2java pluing from myspotter.com. jboss seems to be missing an axis config file?
http://sourceforge.net/tracker/index.php?func=detail&aid=1038708&group_id=22866&atid=376685
-ks -
5. Re: NullpointerException in Axis
robisz Oct 5, 2004 7:16 AM (in response to robisz)Yes, it seems the wsdl is in document/literal style.
I want to access a remote webservice and the wsdl comes from
an external source... Does it means I won't be able to use it? -
6. Re: NullpointerException in Axis
thomas.diesler Oct 5, 2004 3:20 PM (in response to robisz)I'm seeing the same issue when connecting to www.sforce.com's document/literal services. It's prio one of my todos.
-
7. Re: NullpointerException in Axis
thomas.diesler Oct 5, 2004 3:21 PM (in response to robisz)BTW, is your service public? Can you provide a test and file an issue on sourceforge?
-
8. Re: NullpointerException in Axis
robisz Oct 6, 2004 7:37 AM (in response to robisz)I'm sorry, my service is not public... but I've maked a small sample
application and I'm perceiving very strange things...
I've maked this SEI:package sample.ws; public interface SampleEndpoint extends java.rmi.Remote { public String changeSalary(UserType user, Integer amount) throws java.rmi.RemoteException; }
The implementation class:public class SampleEndpointImpl implements SampleEndpoint { public String changeSalary(UserType user, Integer amount) throws RemoteException { return "Hello " + user.getFirstName() + " " + user.getLastName() +"! Your salary is: " + amount; } }
I've created a sample servlet wich calls this webservice method and
displays the result string.
I've generated the wsdl in three ways (with axis Java2WSDL):
1. rpc/literal (with --style RPC)
2. document/literal (with --style DOCUMENT)
3. document/literal wrapped (with --style WRAPPED)
In every cases I get different results...
1. rpc/literal
Everything seems fine. With this method call in servlet...
UserType user = new UserType(); user.setFirstName("John"); user.setLastName("Smith"); String info = endpoint.changeSalary(user, new Integer(5000));
...I'm getting correct result:Hello John Smith! Your salary is: 5000
2. document/literal
In this case I'm getting the following result:Hello John Smith! Your salary is: null
It seems all parameters except the first will be null in this case.
I think this is a bug.
3. document/literal wrapped
In this case I'm getting NullPointerExcpetion as above in my first post.
Messages in wsdl contain only one part, although my EIS method has two
parameters, but I think it's normal in wrapped style.
Unfortunately my service's wsdl belongs to the 3rd category...
I've posted a bug report contains my sample application.
Robisz -
9. Re: NullpointerException in Axis
thomas.diesler Oct 12, 2004 1:35 PM (in response to robisz)The wrapped style is not allowed by the BasicProfile. Try generating your wsdl/jaxrpc-mapping.xml with jwsdp-1.4 wscompile.
-
10. Re: NullpointerException in Axis
dsosnoski Oct 17, 2004 3:29 AM (in response to robisz)If you're referring to the WS-I Basic Profile, wrapped style most certainly is allowed - wrapped is just a set of conventions for one way of structuring doc/lit based on method call definitions.
- Dennis
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support
http://www.sosnoski.com
Redmond, WA 425.885.7197 -
11. Re: NullpointerException in Axis
thomas.diesler Oct 19, 2004 6:44 AM (in response to robisz)Denis says:
If you're referring to the WS-I Basic Profile, wrapped style most certainly is allowed - wrapped is just a set of conventions for one way of structuring doc/lit based on method call definitions.
- Dennis
Dennis M. Sosnoski
Enterprise Java, XML, and Web Services Support http://www.sosnoski.com Redmond, WA 425.885.7197 -
12. Re: NullpointerException in Axis
robisz Oct 19, 2004 3:14 PM (in response to robisz)Your comment is not visible, please respost it.
I wonder about the latest developments :-)
Thx
robisz -
13. Re: NullpointerException in Axis
robisz Oct 26, 2004 8:28 AM (in response to robisz)Excuse me for reposting the question but I haven't got any
answer yet.
Is document/literal-wrapped supported by J2EE 1.4 or not?
In doc/lit style could my SEI methods have more than one arguments?
I think the answer is yes, but it doesn't work in JBoss...
Does anybody know whats the truth about it?
Thx -
14. Re: NullpointerException in Axis
thomas.diesler Oct 26, 2004 8:35 AM (in response to robisz)> Is document/literal-wrapped supported by J2EE 1.4 or not?
It is not covered by J2EE spec, JBossWS does not support it.
> In doc/lit style could my SEI methods have more than one arguments?
This is poorly supported in Axis, which JBossWS still uses internally. In jboss-4.0.1 there will probably be better support for it. Until then, you should use wrapper objects for multiple parameters.
The jboss-4.0.1 release is scheduled for next week.