Hi Lukas,
Post by Lukas JungmannJAX-WS does not support rpc/enc web services directly but you can use
Dispatch client instead, see an example which shows how to call rpc/enc
based Google ws from JAX-WS at
http://weblogs.java.net/blog/jitu/archive/2006/01/accessing_googl_1.html
I looked at the GoogleSearch example.
At this moment I don't want to become a SOAP or RPC expert, just get my app
working...
The dispatch example is more complicated than I'd like to handle right
now...
Post by Lukas JungmannAnother option is to use JAX-RPC
I did look at that the moment I found out that Atlassian uses rpc/enc.
I installed the JAX-RPC plugin in NetBeans.
When I add a Web Service Client it results in "WsCompile script failed
during initial client generation":
init:
wscompile-init:
Created dir: C:\netbeans\SoapRpc\build\classes
Created dir: C:\netbeans\SoapRpc\build\generated\wsclient
Created dir: C:\netbeans\SoapRpc\build\generated\wsbinary
jirasoapservice-v2-client-wscompile:
Copying 1 file to C:\netbeans\SoapRpc\build\generated\wsclient\wsdl
warning: Processing WS-I non conforming operation "getComment" with
RPC-Style and SOAP-encoded
warning: R2716/R2726 WSI-BasicProfile ver. 1.0, namespace attribute not
allowed in doc/lit or rpc/lit for soapbind:fault: "RemoteException"
warning: Processing WS-I non conforming operation "createGroup" with
RPC-Style and SOAP-encoded
warning: R2716/R2726 WSI-BasicProfile ver. 1.0, namespace attribute not
allowed in doc/lit or rpc/lit for soapbind:fault:
"RemoteValidationException"
warning: R2716/R2726 WSI-BasicProfile ver. 1.0, namespace attribute not
allowed in doc/lit or rpc/lit for soapbind:fault:
"RemotePermissionException"
warning: R2716/R2726 WSI-BasicProfile ver. 1.0, namespace attribute not
allowed in doc/lit or rpc/lit for soapbind:fault:
"RemoteAuthenticationException"
warning: R2716/R2726 WSI-BasicProfile ver. 1.0, namespace attribute not
allowed in doc/lit or rpc/lit for soapbind:fault: "RemoteException"
warning: Processing WS-I non conforming operation "getServerInfo" with
RPC-Style and SOAP-encoded
warning: Processing WS-I non conforming operation "getGroup" with RPC-Style
and SOAP-encoded
<snip...>
C:\netbeans\SoapRpc\build\generated\wsclient\soaprpc\JiraSoapService_createGroup_Fault_SOAPSerializer.java:22:
ns1_fault_QNAME is already defined in
soaprpc.JiraSoapService_createGroup_Fault_SOAPSerializer
private static final javax.xml.namespace.QName ns1_fault_QNAME = new
QName("http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", "fault");
C:\netbeans\SoapRpc\build\generated\wsclient\soaprpc\JiraSoapService_createGroup_Fault_SOAPSerializer.java:26:
ns1_fault_QNAME is already defined in
soaprpc.JiraSoapService_createGroup_Fault_SOAPSerializer
private static final javax.xml.namespace.QName ns1_fault_QNAME = new
QName("http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", "fault");
C:\netbeans\SoapRpc\build\generated\wsclient\soaprpc\JiraSoapService_createGroup_Fault_SOAPSerializer.java:30:
ns1_fault_QNAME is already defined in
soaprpc.JiraSoapService_createGroup_Fault_SOAPSerializer
private static final javax.xml.namespace.QName ns1_fault_QNAME = new
QName("http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", "fault");
<snip...>
C:\netbeans\SoapRpc\build\generated\wsclient\soaprpc\JiraSoapService_deletePermissionScheme_Fault_SOAPSerializer.java:30:
ns1_fault_QNAME is already defined in
soaprpc.JiraSoapService_deletePermissionScheme_Fault_SOAPSerializer
private static final javax.xml.namespace.QName ns1_fault_QNAME = new
QName("http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", "fault");
C:\netbeans\SoapRpc\build\generated\wsclient\soaprpc\JiraSoapService_addPermissionTo_Fault_SOAPSerializer.java:22:
ns1_fault_QNAME is already defined in
soaprpc.JiraSoapService_addPermissionTo_Fault_SOAPSerializer
private static final javax.xml.namespace.QName ns1_fault_QNAME = new
QName("http://jira.atlassian.com/rpc/soap/jirasoapservice-v2", "fault");
100 errors
error: compilation failed, errors should have been reported
Command invoked: wscompile C:\Java\jdk1.6.0_06\jre\bin\java.exe -classpath
"C:\Java\jdk1.6.0_06\lib\tools.jar;C:\Documents and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\activation.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\FastInfoset.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\jaxp-api.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\jax-qname.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\jaxrpc-api.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\jaxrpc-impl.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\jaxrpc-spi.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\jsr173_api.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\mail.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\relaxngDatatype.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\saaj-api.jar;C:\Documents
and
Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\saaj-impl.jar;C:\Documents
and Settings\rev\.netbeans\6.5beta\modules\ext\jaxrpc16\xsdlib.jar"
com.sun.xml.rpc.tools.wscompile.Main -d
C:\netbeans\SoapRpc\build\generated\wsbinary
-features:searchschema,wsi,rpcliteral -gen:client
-httpproxy:${wscompile.client.jirasoapservice-v2.proxy} -keep -mapping
C:\netbeans\SoapRpc\build\generated\wsclient\wsdl\jirasoapservice-v2-mapping.xml
-s C:\netbeans\SoapRpc\build\generated\wsclient
C:\netbeans\SoapRpc\build\generated\wsclient\wsdl\jirasoapservice-v2-config.xml
C:\netbeans\SoapRpc\nbproject\build-impl.xml:335: wscompile failed
BUILD FAILED (total time: 5 seconds)
Cheers,
rev
--
View this message in context: http://www.nabble.com/How-to-create-a-web-service-client-for-rpc-enc-http%3A--jira.atlassian.com-rpc-soap-jirasoapservice-v2-tp19011524p19113823.html
Sent from the Netbeans - Users mailing list archive at Nabble.com.