Hey, I finally found this opportunity...
2011-11-15 05:05:51 GMT
|
Hello Friend. |
|
Hello Friend. |
Guys, Is it possible to use JAX-RPC with Axis web service? I tried a version that comes with Glassfish 3 and got some easy operations working but for more complicated some deserialization exceptions occur. With Apache Axis everything works just fine. Exception in thread "main" java.rmi.RemoteException: Runtime exception; nested exception is: deserialization error: deserialization error: unexpected XML reader state. expected: END but found: START: id at com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:348) at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:330) at test.JiraSoapService_Stub.getIssue(JiraSoapService_Stub.java:376) at rpcclient4.RPCClient4.main(RPCClient4.java:33) Caused by: deserialization error: deserialization error: unexpected XML reader state. expected: END but found: START: id at com.sun.xml.rpc.encoding.SOAPDeserializationContext.deserializeMultiRefObjects(SOAPDeserializationContext.java:107) at com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:256) ... 2 more Java Result: 1 -- -- Best regards, Alexander Kouznetsov
I need to get a SOAPMessage and I think the solution is the following: SOAPMessageContext soapContext = (SOAPMessageContext)messageContext; // get SOAP message SOAPMessage msg = soapContext.getMessage(); But, what is that messageContext?? I have created my proxy automatically with Netbeans using an wdsl file. My Service Endpoint Interface is called "ManagementService" Thank you to everyone -- -- View this message in context: http://old.nabble.com/What-is-a-messageContext--tp28256780p28256780.html Sent from the JAX-RPC - User mailing list archive at Nabble.com.
Newbie Question, When I generate my wsdl from Java code all of the attributes in my WSDL are set to nillable="true". I update the generated wsdl to have nillable="false" for the attributes that must be populated but when the WAR file get's deployed the wsdl sets everything back to nillable="true". Is there a way to keep the WSDL file from getting changed? BTW, im using Eclipse IDE, JAX-RPC, AXIS in Tomcat environment. Any help would be appreciated. -- -- View this message in context: http://old.nabble.com/Java-to-WSDL-nillable-attributes--tp27461893p27461893.html Sent from the JAX-RPC - User mailing list archive at Nabble.com.
Hi ! I developed a web service, and a mobile client. On the Sun Wireless Toolkit Emulator the mobile client works fine, but when it's deployed on my nokia 5800, there is an error when i send a char like á,é,ñ : Jan 21, 2010 10:31:23 PM com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit handle SEVERE: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxIOException: Invalid UTF-8 middle byte 0x65 (at char #261, byte #37) i found a solution for this problem but for the ibm implementation of jax-rpc : set the javax.xml.soap.SOAPMessage.CHARACTER_SET_ENCODING property but in the stub generated by netbeans ( netbeans impl of jax-rpc ?? ) i don't find this property Thanks you in advance
Hello!
Please can you help me with this problem :
http://forums.netbeans.org/topic21590.html
Nobody answer my posts about this problem.
Thanks!
I'm a novice (at best) at SOAP and Web Services in general. I'm writing
a simple program to consume this web service. WSDL below. The stubs and
stuff are generated by NetBeans 6.7.1
The code I am using to test:
ToyboxService_Impl l_service = new ToyboxService_Impl();
RTI l_rti = l_service.getRTI();
((Stub)l_rti)._setProperty(Stub.USERNAME_PROPERTY, "omitted");
((Stub)l_rti)._setProperty(Stub.PASSWORD_PROPERTY, "omitted");
StringHolder l_cid = new StringHolder();
StringHolder l_content = new StringHolder();
StringHolder l_result = new StringHolder();
l_rti.fetch_profile("me <at> you.com", l_cid, l_content, l_result);
The error I am getting:
unexpected element name:
expected={http://the.namespace.com/survey/}fetch_profileResponse,
actual=fetch_profileResponse
If I am reading that correctly, the generated code is expecting the
namespace but the server is not responding with one. Is that what that
means? Is there something I can tweak in the WSDL or the code to get
around this problem?
<wsdl:definitions
targetNamespace="http://the.namespace.com/survey/"
elementFormDefault="unqualified"
attributeFormDefault="unqualified"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tbx="http://abc.stuff.com/"
xmlns:rti="http://the.namespace.com/survey/">
<wsdl:message name="create_profileParameters">
<wsdl:part name="email" type="xsd:string" />
<wsdl:part name="first_name" type="xsd:string" />
<wsdl:part name="last_name" type="xsd:string" />
<wsdl:part name="address1" type="xsd:string" />
<wsdl:part name="address2" type="xsd:string" />
<wsdl:part name="city" type="xsd:string" />
<wsdl:part name="state" type="xsd:string" />
<wsdl:part name="zip" type="xsd:string" />
<wsdl:part name="age_range" type="xsd:string" />
<wsdl:part name="home_phone_number" type="xsd:string" />
</wsdl:message>
<wsdl:message name="fetch_profileParameters">
<wsdl:part name="email" type="xsd:string" />
</wsdl:message>
<wsdl:message name="rtiResult">
<wsdl:part name="cid" type="xsd:string" />
<wsdl:part name="content" type="xsd:string" />
<wsdl:part name="result" type="xsd:string" />
</wsdl:message>
<wsdl:portType name="RTI">
<wsdl:operation name="create_profile">
<wsdl:input message="rti:create_profileParameters" />
<wsdl:output message="rti:rtiResult" />
</wsdl:operation>
<wsdl:operation name="fetch_profile">
<wsdl:input message="rti:fetch_profileParameters" />
<wsdl:output message="rti:rtiResult" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SOAP" type="rti:RTI">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc"/>
<wsdl:operation name="create_profile">
<soap:operation soapAction="#create_profile"/>
<wsdl:input>
<soap:body namespace="http://the.namespace.com/survey/"
use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="http://the.namespace.com/survey/"
use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="fetch_profile">
<soap:operation soapAction="#fetch_profile"/>
<wsdl:input>
<soap:body namespace="http://the.namespace.com/survey/"
use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body namespace="http://the.namespace.com/survey/"
use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ToyboxService">
<wsdl:documentation>stuff</wsdl:documentation>
<wsdl:port name="RTI" binding="rti:SOAP">
<soap:address location="http://the.namespace.com/survey/"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
--
--
Mitch Claborn
972-954-7341
mitch <at> claborn.net
Hi List,
I am using jwsdp-1.6 for generating webservices client stubs from WSDL file. The server side WSDL file is in .NET and uses security. So for this purpose I am using
jax-rpc and xwss functionality of the jwsdp-1.6. I am using the generated classes to call the server side mothods.
But when I am sending the request in which as a request I need to add the following header in SOAP header which is not added by default.
<wsa:Action soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next"
soapenv:mustUnderstand="1"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
http://www.xxxx.com/Cardholder/v1:helloWorldIn
</wsa:Action>
<wsa:To>urn:EvolutionBenefits:Services:V1:CardholderService</wsa:To>
So any one of you have idea that how can I add the above tags within SOAP Header then please help me out.
Thanks,
Amit Soni
| Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
RSS Feed1 | |
|---|---|
1 | |
1 | |
1 | |
1 | |
1 | |
3 | |
1 | |
6 | |
2 | |
5 | |
4 | |
1 | |
2 | |
2 | |
2 | |
1 | |
1 | |
8 | |
5 | |
6 | |
9 | |
5 | |
6 | |
2 | |
13 | |
1 | |
2 | |
12 | |
106 | |
35 | |
77 | |
73 | |
69 | |
39 | |
23 | |
1 | |
28 | |
2 |