Problem in invoking the web services
Hi all,
I am new to java web services
i develoed a simple webservices here i am posting the code
i generated every thing using wstools of Jboss4.0.5AS
package com.javasrc.webservices.age;
import java.rmi.Remote;
import java.rmi.RemoteException;
public interface Age extends Remote
public String age( String name, Integer age ) throws RemoteException;
package com.javasrc.webservices.age;
public class Age_Imp
public String age( String name, Integer age )
return name + " is " + age + " years old!";
when i am invoking using the client progrmme i am getting nullpointer exception
ie.
java.lang.NullPointerException
at org.apache.axis.client.Call.getTypeMapping(Call.java:2402)
at org.apache.axis.client.Call.setReturnType(Call.java:1230)
at org.apache.axis.client.Call.setOperation(Call.java:1412)
at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:369)
at $Proxy0.age(Unknown Source)
at com.javasrc.webservices.age.AgeClient.main(AgeClient.java:35)
Exception in thread "main"
**this is my client programm**
package com.javasrc.webservices.age;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import com.javasrc.webservices.age.Age;
import javax.xml.namespace.QName;
import java.net.URL;
public class AgeClient
public static void main( String[] args ) throws Exception {
if( args.length < 3 )
System.out.println( "Usage: AgeClient urlstr name age" );
System.exit( 0 );
String urlstr = args[ 0 ];
String argument = args[ 1 ];
String argument2 = args[ 2 ];
System.out.println( "Contacting webservice at " + urlstr );
URL url = new URL(urlstr);
QName qname = new QName("http://age.webservices.javasrc.com/",
"AgeService");
ServiceFactory factory = ServiceFactory.newInstance();
Service service = factory.createService( url, qname );
Age age = ( Age ) service.getPort( Age.class );
System.out.println( "age.age(" + argument + ", " + argument2 + ")" );
String result = age.age(argument,new Integer( argument2 ));//here i am getting error
System.out.println( "output:" + result );
pls help in resolving this
Assuming this is for Oracle BPM 11g.
I'm a novice at this and sure others will have infinitely better ideas (have I lowered your expectations enough?), but here are two thoughts. Both of these ideas assume that your child process was invoked by an Oracle BPM parent process.
When you expose a process as a web service and invoke it asynchronously from a parent process, there is a call back service available. I've yet to figure out exactly how to get it to work, but if you look at the "Start" event's property in the composite (it's the service) you will see the callback information in the bottom dropdown. I believe what this means is that from your child process, you can use a Service activity to invoke a service that invokes the callback service back to the parent process's Service activity.
My other idea (you're not going to like this one) would be to to invoke the subprocess using a Message Start Event activity instead of the Service activity you're currently using. If you go this route, then you could have your parent process kick off the child subprocess using a Message Start Event activity and then immediately after this have a Message Catch Event activity. The child process could have a Message Throw Event activity immediately after its Start Message Event activity that sends a notification to the parent process. The good part about this is that I've actually gotten this to work.
You can send argument information back to the parent process, but (sorry) I don't yet know how to capture the process id.
Wish I could be of more help and hope this helps a little.
Similar Messages
-
Oracle EBS throwing exception while invoking the web service
Hi,
When I try to invoke the web service through SOAPUI it is working perfectly fine. however when I try to call it using a .net client. I am getting the below exception:
oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: System ErrorServiceGenerationError: Error in Creating Response MessageServiceGenerationError: Error in getting translated error messagenull.
Please help me.
Thanks,
ManishHi Manish,
Please check notes:
R12.1.1: ISG BPEL Calls Results in java.net.sockettimeoutexception & oracle.apps.fnd.soa.util.SOAException (Doc ID 1103755.1)
"Error in getting translated error messagenull" When Invoking a web service from SOAP UI (Doc ID 1507313.1)
Thanks &
Best Regards,
Asif -
Error during invoking the web service
hi,
i am using axis 1.2.1 & tomcat-5.0.28
when i am trying to invoke the web service i am getting the error.
i am passing all the parameters..then also it is giving the error.i have used the wsdl file to generate the stubs (using wsdl2java tool).the web service is in remote system.
anybody knows Please let me know the soln.
thanks in advance
the error:
Exception in thread "main" AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: JAXRPCTIE01: caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:JAXRPCTIE01: caught exception while handling request: deserialization error: java.lang.NumberFormatException: For input string: ""1. Does your network have a proxy ? - if so, configure the proxy details in the SOAP adapter.
2. Does the WS expect any credentials? - if so configure the same in the adapter.
More: /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009 -
How can I invoke the web service manually in websphere?
Hi
I've developed a webservice application using Rational Application Developer (RAD). I deployed it in a websphere 6.1 application server, using the administration console to import the war file that I had previously exported with RAD.
My webservice application is listed in the "Enterprise Applications" section of websphere's administration console as started.
My question is: how can I invoke the web service manually? Is there some kind of websphere generated webpage that I can use to call it manually?
I tried http://<server:port>/<contextroot> and http://<server:port>/<contextroot>/<servicename> in a webbrowser, but it doesn't work. Is it possible to invoke the web service manually, or do I need to develop a client?
Thanks in advance
PedroHi Bo Wang,
Go to the Portal -> System Administration -> System Configuration
-> Portal Content folder
-> Open Visual Composer folder
There you can see the Webservice Systems you have created through VC.
You can delete the unwanted system here.
Regards,
Shemim -
Detail; The fault returned when invoking the web service operation
Hi,
We are getting below errors from Coldfusion, I am not a coldfusion expert engg. so unable to trace it futher..kindly suggest some move to get this resolve.
Detail; The fault returned when invoking the web service operation is:<br> <pre>AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server faultSubcode: faultString: java.lang.reflect.UndeclaredThrowableException faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}stackTrace:java.lang.reflect.UndeclaredThrowableException at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221) at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128) at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:10 87) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch( Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(U... ''</pre>
Message: Cannot perform web service invocation getStudentByNRIC.
StackTrace: coldfusion.xml.rpc.ServiceProxy$ServiceInvocationException: Cannot perform web service invocation getStudentByNRIC. at coldfusion.xml.rpc.ServiceProxy.invokeImpl(ServiceProxy.java:230) at coldfusion.xml.rpc.ServiceProxy.invoke(ServiceProxy.java:143) atI expected something like:
http://localhost:8500/opensource/QBWC_Shell.cfc?wsdl
Apart from that, your code looks right. -
Problem in accessing the Web Service using standalone Java Client
Dear Friends,
Hi,
I have an active web service and I have tested the same with XML Spy and Apache Axis and is giving me the output perfectly. For the same, I have developed a standalone Java client but getting problem in fetching the output.
The Exception is :
<Jan 4, 2006 5:54:16 PM GMT+05:30> <Info> <WebService> <BEA-220025> <Handler weblogic.webservice.core.handler.ClientHandler threw
an exception from its handleResponse method.
The exception was:
javax.xml.rpc.JAXRPCException: java.io.IOException: Received a response from url: http://10.20.15.59:18004/amountToWords which did
not have a valid SOAP content-type: text/html;charset=ISO-8859-1. .>
SOAP Fault **************** Exception during processing: java.io.IOException: Received a response from url: http://10.20.15.59:18
004/amountToWords which did not have a valid SOAP content-type: text/html;charset=ISO-8859-1.
(see Fault Detail for stacktrace)
javax.xml.rpc.soap.SOAPFaultException: Exception during processing: java.io.IOException: Received a response from url: http://10.2
0.15.59:18004/amountToWords which did not have a valid SOAP content-type: text/html;charset=ISO-8859-1.
(see Fault Detail for sta
cktrace)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:313)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:144)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:566)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:419)
at HelloClient.main(HelloClient.java:100)
I have tried some ways to set the content type explicitly but the results are same(throwing an exception).
I appreciate you all for helping me out of this.
Thanks
VRHi Amit
We also have this issue with weblogic webservices. Did you get any resolution for this issue.
When the service is executed for lesser number of hits, all the responses are processed properly. But as load (Number of hits for the same service) increases, few responses are failed to be parsed in the web service client. We could confirm that the producer responds with proper content type (text/xml)
Any help or pointers will be greatly appreciated.
Thanks,
Finny -
Problems while invoking a web service
Hi everybody,
I need to call a web service and treat its response data. So I'm using OdiInvokeWebService tool, and trying to export the response to an xml file, in order to be able to treat the information. The question is that I just can't get the response, because the response file is empty after doing the call. If I try with the "advanced" option of the tool, the result is the same, doesn't matter which mode of request (xml request or xml file request) I use. But I'm even more worried considering that the process works properly when I use a tool like soapUI, that means, I get a result when I call the web service with this tool. It looks very strange because I used ODI previously with the same goal, and I didn't have any problem working in the same way. So, could somebody help me with this issue?
Thanks in advance,
Hibai.> The problem is, when my application running in Netweaver tries to consume the webservice, it takes the external access to try to reach the webservice URL instead of take the VPN route to do that. ie. my application find an external IP of the webservice instead of finding the internal IP.
You're using a proxy?
Markus -
Problem while invoking a web service within an XML native database
Within the eXist dbms, I'm writing a module which implements several extensions to XPath. These extensions must invoke a remote web-service.
I initially tested a standalone consumer, and everythink worked out successfully. Thus I created a jar, I used the same code in eXist, recompiled it, and started the server. I thus launched an XPath query (containing these extensions), and I received the following exception:
Provider com.sun.xml.ws.spi.ProviderImpl not found
What does it mean?
What am I missing?
CLASSPATH should be ok, since it is set to (and it is the same of the "standard" consumer):
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/activation.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/FastInfoset.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/http.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxb-impl.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxb-xjc.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxws-rt.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jaxws-tools.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/jsr250-api.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/resolver.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/saaj-impl.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/sjsxp.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/stax-ex.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/streambuffer.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jaxb-api.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jaxws-api.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jsr173_api.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/jsr181-api.jar
/opt/netbeans-5.5.1/ide7/modules/ext/jaxws21/api/saaj-api.jar
Thanks in advance for any reply and/or suggestion.
Pierpaolo.Hi,
Can anyone help me with this ??
I guess I am not able to send the authorization credentials via the request to the web service invocation.
Plz help ! This is a bit urgent..
Regards,
Shiva Kiran -
Problem when invoking a web service multiple times
Hello,
I have a java client which invokes an apache axis web service (deployed on an Oracle Application Server on a remote machine) multiple times.
The client distributes the web service invokes among multiple threads, every thing goes well but after an average of 300 web service invokes (among all threads) ab exception is thrown from the client:
java.net.SocketException: Unable to establish connection
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:11
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at standardwebservice.StandardWebserviceSoapBindingStub.getStandardWebserviceData(StandardWebserviceSoapBindingStub.java:225)
at standardwebservice.StandardWebserviceProxy.getStandardWebserviceData(StandardWebserviceProxy.java:50)
at main.VericalThread.run(VericalThread.java:65)
Caused by: java.net.SocketException: Unable to establish connection
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:13
... 12 more
Thread No. 1 Start for calling 1210ZD106MAT2AAxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Unable to establish connection
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Unable to establish connection
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:13
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:11
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at standardwebservice.StandardWebserviceSoapBindingStub.getStandardWebserviceData(StandardWebserviceSoapBindingStub.java:225)
at standardwebservice.StandardWebserviceProxy.getStandardWebserviceData(StandardWebserviceProxy.java:50)
at main.VericalThread.run(VericalThread.java:65)
By the way, when I deploy the same web service on an oracle application server on a local machine (in same physical network), every thing goes well and this exception doesn't appear.
By the way, I also tried a JAX-RPC web service and the same exception is thrown.
So please can somebody give me a help.Hello,
I have a java client which invokes an apache axis web service (deployed on an Oracle Application Server on a remote machine) multiple times.
The client distributes the web service invokes among multiple threads, every thing goes well but after an average of 300 web service invokes (among all threads) ab exception is thrown from the client:
java.net.SocketException: Unable to establish connection
at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:11
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at standardwebservice.StandardWebserviceSoapBindingStub.getStandardWebserviceData(StandardWebserviceSoapBindingStub.java:225)
at standardwebservice.StandardWebserviceProxy.getStandardWebserviceData(StandardWebserviceProxy.java:50)
at main.VericalThread.run(VericalThread.java:65)
Caused by: java.net.SocketException: Unable to establish connection
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:13
... 12 more
Thread No. 1 Start for calling 1210ZD106MAT2AAxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: java.net.SocketException: Unable to establish connection
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:java.net.SocketException: Unable to establish connection
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:153)
at org.apache.axis.components.net.DefaultSocketFactory.create(DefaultSocketFactory.java:120)
at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:191)
at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:404)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:13
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:11
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at standardwebservice.StandardWebserviceSoapBindingStub.getStandardWebserviceData(StandardWebserviceSoapBindingStub.java:225)
at standardwebservice.StandardWebserviceProxy.getStandardWebserviceData(StandardWebserviceProxy.java:50)
at main.VericalThread.run(VericalThread.java:65)
By the way, when I deploy the same web service on an oracle application server on a local machine (in same physical network), every thing goes well and this exception doesn't appear.
By the way, I also tried a JAX-RPC web service and the same exception is thrown.
So please can somebody give me a help. -
I'm trying to call the web service with automatically built service client, the code is like this:
Dispatch<Source> sourceDispatch = null;
sourceDispatch = service.createDispatch(portQName, Source.class, Service.Mode.PAYLOAD);
Source result = sourceDispatch.invoke(new StreamSource(new StringReader(req)));where req is String variable containing whole xml message.
but after running I have an error:
Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]
com.sun.xml.internal.ws.server.UnsupportedMediaException: Unsupported Content-Type: text/html; charset=UTF-8 Supported ones are: [text/xml]
at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:116)
at com.sun.xml.internal.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:280)
How to change the content-type of the message ? or maybe deal with that in better way ?
I've tried to call the service by using generated object too, this is the code
PersonManagementServiceSync_Service service = new PersonManagementServiceSync_Service();
PersonManagementServiceSync port = service.getPersonManagementServiceSyncSoap();
// TODO initialize WS operation arguments here
CreatePersonRequest parameters = new CreatePersonRequest();
SyncRequestHeaderInfo headerInfoRequest = new SyncRequestHeaderInfo();
javax.xml.ws.Holder<CreatePersonResponse> response = new javax.xml.ws.Holder<CreatePersonResponse>();
javax.xml.ws.Holder<SyncResponseHeaderInfo> headerInfoResponse = new javax.xml.ws.Holder<SyncResponseHeaderInfo>();
...parameters setup .....
port.createPerson(parameters, headerInfoRequest, response, headerInfoResponse);but that's generates another error:
Unable to create StAX reader or writer
Does anybody know how to fix that ??? I'm using NetBeans 6.5 to build the clientPlease help me on this !!!
-
Problem in using the Web Service generated from BAPI_FLIGHT_GETLIST
Hi all,
I am trying to use the Web Service generated from BAPI_FLIGHT_GETLIST. I have got the wsdl file, and trying to invoke it. But, while I can test the BAPI using the Airline ID AA, I can't test from the Web Service using the same data. It shows the error message - "Airline AA not found". Anyone having solution, please help. This is urgent.
Thanks,
Anirban
Message was edited by:
Anirban DasYes, I am connecting to the same system where we have data..
Anirban -
Problem while opening the Web Service Homepage
Hi All,
I have created a Web Service and in Tcode WSADMIN , I am trying to open the Web Service Homepage (Ctrl+F8) and getting an error message "Could not determine WSDL Address(ICF Error)".
Please suggest...
Regards
PraveshHi,
In transaction SICF
<b>/sap/bc/bsp/sap/learning_map</b>
Choose Activate Service from the context menu.
Also refer this thread.
Solution Manager Learning Map http error 403
Regards,
Sarvesh -
XA Exception while invoking the Web Service
I'm getting the following exception frequently while invoking the webservice hosted in OC4J:
-4972682009633467115com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: Error in transaction: javax.transaction.xa.XAException: Commit (onePhase) failed.
at ProvisionCBCMRemote_StatelessSessionBeanWrapper2206.setObjectDetails(ProvisionCBCMRemote_StatelessSessionBeanWrapper2206.java:151)
at ae.co.etisalat.cbcm.web.soh.provisioncbcm.ProvisionCBCMController.ProvisionCBCM(ProvisionCBCMController.java:76)
at ae.co.etisalat.cbcm.web.soh.provisioncbcm.__ProvisionCBCMControllerStatelessWrapper.invokeMethod(__ProvisionCBCMControllerStatelessWrapper.java:100)
at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:121)
at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:342)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:792)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Nested exception is:
javax.transaction.xa.XAException: Commit (onePhase) failed.
at com.evermind.sql.DriverManagerXAResource.ThrowXaErr(DriverManagerXAResource.java:249)
at com.evermind.sql.DriverManagerXAResource.commit(DriverManagerXAResource.java:73)
at com.evermind.server.TransactionEnlistment.commit(TransactionEnlistment.java:251)
at com.evermind.server.ApplicationServerTransaction.singlePhaseCommit(ApplicationServerTransaction.java:746)
at com.evermind.server.ApplicationServerTransaction.commit(ApplicationServerTransaction.java:691)
at com.evermind.server.ApplicationServerTransaction.end(ApplicationServerTransaction.java:1036)
at ProvisionCBCMRemote_StatelessSessionBeanWrapper2206.setObjectDetails(ProvisionCBCMRemote_StatelessSessionBeanWrapper2206.java:147)
at ae.co.etisalat.cbcm.web.soh.provisioncbcm.ProvisionCBCMController.ProvisionCBCM(ProvisionCBCMController.java:76)
at ae.co.etisalat.cbcm.web.soh.provisioncbcm.__ProvisionCBCMControllerStatelessWrapper.invokeMethod(__ProvisionCBCMControllerStatelessWrapper.java:100)
at oracle.j2ee.ws.InvocationWrapper.invoke(InvocationWrapper.java:121)
at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:342)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:792)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
Anyone can help fixing this issue will be highly appreciated. thanks in advance !!Please help me on this !!!
-
Problem in consuming the Web service throgh "Onload" of the applicatuon.
hi , when i consume web service "onload" of the application ,
i am unable to retrive the last result .
but when i consume the same web service "onclick" event of a
button , i am able to get the last result.
Can i consume a web service from "onload" of the application
Any suggetions or workaround will be appriciated.
Thanks in advance.
Regards
Shashiyou need to register an result handler as requests are async
so when you the load the results are not instant so declare a
result handler and get the results from there -
Problem invoking a web service
Hopefully this is an easy one for you gurus...
I couldn't read my WSDL when it was in wrapped document/literal format, so I changed it to unwrapped document/literal, and now my javax.wsdl.xml.WSDLReader has no problem reading it. GREAT! Right?
Well, now when I go to invoke the darn thing I get this exception:
org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to deserialize.
I'm trying to invoke the Web Service like this:
Service myService = new Service();
String retval = "";
try {
myService.setCacheWSDL(true);
Call myCall = (Call) myService.createCall();
myCall.setTargetEndpointAddress(endpoint);
myCall.setOperationName(new QName(endpoint, methodName));
myCall.setTimeout(new Integer(HdConstants.SERVICE_CALL_TIMEOUT));
Object myArgs[] = argVals.toArray();
retval = (String) myCall.invoke(myArgs); .....HELP!!
Thanks,
-Jack
Message was edited by:
snoCarver
Message was edited by:
snoCarverHi,
Can anyone help me with this ??
I guess I am not able to send the authorization credentials via the request to the web service invocation.
Plz help ! This is a bit urgent..
Regards,
Shiva Kiran
Maybe you are looking for
-
I have a new i phone 4 and an older ipod touch ...i have songs on my touch which are not on current computer ...i want to put songs on my iphone but computer says its not autorized ive read all the manuals they dont help . I cant update the ipod to n
-
Getting Pages Files from MacBook Pro to iPad
So far, I have been e-mailing my Pages and Keynote files over to my ipad. Is there a way to get them through synching?
-
HT1688 I need to unregister my old phone. Could you please tell me how to do this.
I am no longer using an iphone and need to unregister it. How do I do this?
-
California Non-Resident Withholding
I need to setup withholding so the system will withhold state tax only when the total of the vendors invoices for the year reaches $1,500. The state doesn't require you to withhold if the totatl payments under $1,500. I've played with the Witholding
-
Please Review This VO Breakdown...
Afternoon Folks! I have done a VO mix in Adobe Soundbooth. With the help of an engineer giving me pointers, a few web tutorials, and a little experimenting on my own, I think I've got a pretty good mix I'm happy with. Now, I just want to do a final t