Trying to invoke Apache SOAP 2.3.1 RPC services
I have several legacy apache SOAP 2.3.1 RPC services I am trying to invoke using a synchronous BPEL process. The services are invoked (confirmed by tailing the log on the machine hosting the service) , however, the return value is null in all cases.
I used the snoop utility and I verified a response is indeed being returned, so I am perplexed as to why BPEL is not able to interpret the response.
Any help/ideas would be appreciated as I would prefer not to have to rewrite these services.
Thanks,
RM
Did you specify the correct message type for your return variable?
<Invoke_1_Authenticate_OutputVariable>
<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Result">
null
</part>
</Invoke_1_Authenticate_OutputVariable>
As is returns:
<ns1:AuthenticateResponse
xmlns:ns1="http://vitalstream.com/webservices" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:int">1</return>
</ns1:AuthenticateResponse>
Regards,
Marc
Similar Messages
-
Apache SOAP 2.2 and WL 6.1
When trying to use Apache SOAP 2.2 with WL Server 6.1, I get the following error
when attempting a call.invoke():
"Unable to resolve namespace 'SOAPSDK3'"
I can successfully make the SOAP call using a stand-alone application (not inside
weblogic). I found the following FAQ which described the same problem for WL
Server 6.1 (beta):
http://xml.apache.org/soap/faq/faq-for-WL6.1beta.html
I have not been able to get a working solution though. The XML Registry was already
setup as described, using the org.apache.xerces.*. I also put xerces.jar in front
of weblogic.jar in the WL Classpath (not sure if this would have any effect).
Originally, I had put XERCES 1.3.1 there and had no problem starting WL, but
got the same error as before - Unable to resolve namespace 'SOAPSDK3'. When I
placed another version of XERCES, namely 1.4.3 - I could not even start WL properly,
it crapped out with a memory exception and quit the JVM. I read on WL docs that
XERCES 1.3.1 is required and you cannot put another version in front of the weblogic.jar,
otherwise you have problems (they were right on that one). Here are the WL docs:
http://e-docs.bea.com/wls/docs61/faq/xml.html
So, I'd be interested to see if you anyone has suggestion as to what I might try.
It appears that I MUST use XERCES 1.3.1, but when I put the in front of weblogic.jar
I don't solve the problem. If you know of anything I might try, please let me
know. Thanks.
Configuration:
WL 6.1 on Windows 2000 - application inside EAR file.
SOAP Client - Apache SOAP 2.2
SOAP Server - MS SOAP Toolkit (ISAPI - VB dll)
Christopher Hurley
Tallán, Inc.
[email protected]
cell 201.739.2194Don't know whether below is related to your problem:
https://discussions.apple.com/thread/4831752?tstart=0 -
Hi.
What do you do when you're making a call to a webservice with
org.apache.soap.rpc.Calland it just plain hangs on the Call.Invoke() method?
-pfvHi.
What do you do when you're making a call to a webservice with
org.apache.soap.rpc.Calland it just plain hangs on the Call.Invoke() method?
-pfv -
I'm trying to invoke a search service using service callout . However on trying to test it , I'm getting this response
<con:fault xmlns:con="http://www.bea.com/wli/sb/context">
<con:errorCode>BEA-382500</con:errorCode>
<con:reason>
OSB Service Callout action received SOAP Fault response
</con:reason>
<con:details>
<con1:ReceivedFaultDetail xmlns:con1="http://www.bea.com/wli/sb/stages/transform/config">
<con1:faultcode xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">soapenv:Client</con1:faultcode>
<con1:faultstring>Cannot find dispatch method for {}</con1:faultstring>
<con1:http-response-code>500</con1:http-response-code>
</con1:ReceivedFaultDetail>
Please help in resolving this error.
Thanks,
Rohityou are calling wrong the Service.
¿what kind of service do you have? RPC? Document?
ir your target service its document, I recommend this:
1. Test target service with OSB
2. copy XML request and XML response from the test.
3. use XML request format that you got at Step 2 in your source service and using it at your "Service Callout". -
Trying to invoke HTTPService with SOAP request
Hi all,
I have been trying to invoke a HTTPService with a SOAP request.
Most of the times I get an error saying that the client has invoked
HTTP with get instead of a POST eventhough my code takes care of
it. Any clue on this? I have copied the code snippet below which
has the SOAP request in a variable message.
<?xml version="1.0"?><!--
fds\rpc\WebServiceAddHeader.mxml -->
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
height="628" width="924">
<mx:Script>
<![CDATA[
import mx.messaging.messages.HTTPRequestMessage;
import mx.messaging.messages.SOAPMessage;
var message:SOAPMessage = new SOAPMessage();
public var msg:HTTPRequestMessage = new
HTTPRequestMessage();
public function headers():void {
msg.contentType = HTTPRequestMessage.CONTENT_TYPE_SOAP_XML;
msg.method = HTTPRequestMessage.POST_METHOD;
msg.url = "
http://ldlt7316.wellsfargo.com:8016/hulaweb/FrameworkServletListener";
msg.body = <SOAP-ENV:Envelope xmlns:SOAP-ENV="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:msg="
http://service.wellsfargo.com/entity/message/2003/"
xmlns:hcfg="
http://service.wellsfargo.com/provider/HCFG/entity/envelope/2004/"><SOAP-ENV:Header><msg:W FContext><msg:messageId>1175034929937</msg:messageId><msg:sessionSequenceNumber>1</msg:ses sionSequenceNumber><msg:creationTimestamp>2007-03-27T04:35:29-0600</msg:creationTimestamp> <msg:originatorId>aow</msg:originatorId><msg:initiatorId>AOW</msg:initiatorId></msg:WFCont ext><hcfg:hulaContext><service>ApplicationDataService</service><action>getApplicationByDea lID</action><msg:processingMode>sync</msg:processingMode><contextType>SERVICE_REQUEST</con textType><password>PASSWORD123</password><msg:behaviorVersion>1</msg:behaviorVersion></hcf g:hulaContext></SOAP-ENV:Header><SOAP-ENV:Body><ns:getLendingData
xmlns:ns="
http://service.wellsfargo.com/provider/HCFG/common/lendingDataTransfer/getLendingData/2006 /"><servicePreferences><ns1:maximumWaitTime
xmlns:ns1="
http://service.wellsfargo.com/provider/HCFG/entity/common/2004/">600</ns1:maximumWaitTime> <ns1:maxReturn
xmlns:ns1="
http://service.wellsfargo.com/entity/message/2003/">10</ns1:maxReturn></servicePreferences ><lendingTransaction><transactionDetail>
<ns1:dealId xmlns:ns1="
http://service.wellsfargo.com/provider/HCFG/entity/transactionDetail/2005/">
323010
</ns1:dealId></transactionDetail></lendingTransaction></ns:getLendingData></SOAP-ENV:Body ></SOAP-ENV:Envelope>
soapCall.request = msg;
soapCall.method = "POST";
soapCall.send();
]]>
</mx:Script>
<mx:HTTPService
id="soapCall"
resultFormat="xml"
method="post"
showBusyCursor="true"
makeObjectsBindable="false"
useProxy="false"
requestTimeout="120"
url="
http://ldlt7316.wellsfargo.com:8016/hulaweb/FrameworkServletListener"
request="{msg}">
</mx:HTTPService>
<mx:Panel layout="absolute" title="{soapCall.lastResult}"
id="blog" fontFamily="Courier New">
<mx:DataGrid x="15" y="10" id="dgPosts" width="482"
dataProvider="{soapCall.lastResult}" height="108">
<mx:columns>
<mx:DataGridColumn headerText="Name"
dataField="code"/>
<mx:DataGridColumn headerText="Dates"
dataField="lastName"/>
</mx:columns>
</mx:DataGrid>
<mx:LinkButton label="Get Data" click="headers()"/>
<mx:TextArea x="15" y="145" width="782" fontSize="9"
fontFamily="Verdana" borderStyle="inset"
htmlText="{soapCall.lastResult}" height="379"/>
</mx:Panel>
</mx:Application>Would really appreciate some help with this issue. Thanks!
-
Soap layer error when trying to invoke a webservice.
Hi,
I am new to Weblogic.
I have an issue while invoking the webservice of a webmethods application.
I am invoking that webservice using rpc call (call.invoke() method of javax.xml.rpc api).
Please find error description occured in the Server logs of weblogic server.
Exception while invoking the service call Message is :failed to invoke operation '__incidentReqInput' due to an error in the soap layer(SAAJ);
nested exception is: Message[Found SOAPElement
[<m:payload xmlns:m="http://www.abc.com/gs/solutions/message"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true">
</m:payload>]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElement. Th
e name of the element should be one of these[__bea_noname_result]]StackTrace[
javax.xml.soap.SOAPException: Found SOAPElement [<m:payload xmlns:m="http://www.abc.com/gs/solutions/message"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:nil="true">
</m:payload>]. But was not able to find a Part that is registered with this Message which corresponds to this SOAPElement. Th
e name of the element should be one of these[__bea_noname_result]
at weblogic.webservice.core.DefaultMessage.toJava(DefaultMessage.java:478)
at weblogic.webservice.core.ClientDispatcher.receive(ClientDispatcher.java:325)
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 com.gs.customerbonding.hub.httpHandler.WSResponseSenderImpl.sendResponse(WSResponseSenderImpl.jcs:370)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.bea.wlw.runtime.core.dispatcher.DispMethod.invoke(DispMethod.java:371)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:423)
at com.bea.wlw.runtime.core.container.Invocable.invoke(Invocable.java:396)
at com.bea.wlw.runtime.jcs.container.JcsProxy.invoke(JcsProxy.java:381)
at $Proxy106.sendResponse(Unknown Source)
Any help is highly appreciated.
Regards
NagI am not using any wsdl file. I'm trying to invoke a webservice that is at client's end (using RPC call). Mine is a generic server program. When i'm calling other clients using the same method, im not facing any issues. Only for 1 particular end-point i'm getting the above exception. Any suggestions?
-
Exception javax.xml.ws.soap.SOAPFault when trying to invoke OBR
Hi,
1 .I am have created a SOA Composite which has an OBR. I deployed that project and that was working fine.
2 .In Order to call the OBR service from another composite I have created another composite in which a web service(reference) adapter which is towards the right side of the composite shall call the web service of the OBR composite.
When I point the URL to the WSDL of the OBR web service, I get the error. The screenshot of the error is avbl at the following URL. http://img199.imageshack.us/img199/7015/37887205.jpg
3 .So I have manually saved the WSDL of OBR web service as a file and saved it in the proj that i mentioned in 2. Then I was able to create web service adapter with out any problem. Then I created a composite (screenshot http://img59.imageshack.us/img59/7826/30673557.jpg ) which calles the OBR web service and gets the reply.
4. After deploying the composite, when I am trying to invoke the OBR service, I get the following error in the console of the Soa server.
SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch re
quest to http://rws60045rems:5002/soa-infra/services/default/EventLogProj/OracleRules1_DecisionService_1 due to exceptionjavax.xml.ws.soap.SOAPFaultException
SEVERE: Received a business fault{http://xmlns.oracle.com/OracleRules2/OracleRul
es2_DecisionService_1}operationErroredFault. Sending fault to fault action
SEVERE: AbstractWebServiceBindingComponent.dispatchRequest Unable to dispatch re
quest to http://rws60045rems:5002/soa-infra/services/default/HighValueOrderOBRPr
oject/OracleRules2_DecisionService_1 due to exceptionjavax.xml.ws.soap.SOAPFault
Exception: Invalid URI "ID:<65469.1271952700558.0>" in Addressing element Relate
sTo.
: Got an exception: oracle.fabric.common.FabricInvocationException
oracle.tip.mediator.infra.exception.MediatorException: ORAMED-03303:[Unexpected exception in case execution]Unexpected exception in request response operation "callFunctionStateless" on reference "CallHighValOrdService". Possible Fix:Check whether the reference service is properly configured and running or look at exception for analysing the reason or contact oracle support.
Please help me to resolve these errors. Please let me know what could have led to this problem and exceptions.
Thanks,
Raj kumar
Edited by: Raja Kumar on Apr 22, 2010 10:06 AM
Edited by: Raja Kumar on Apr 22, 2010 10:07 AMHi,
The problem is solved now. While creating the WS adapter in Jdev, I have tried specifying the URL with the Ip address instead of server name. seems Jdev was not able to resolve the name of the server. Once I created composite with this and deployed the error got resolved.
Thanks,
Raj -
OK This is really weird. I have an app that runs fine in eclipse. I have deployed to using webstart but when I try to instantiate org.apache.soap.rpc.SOAPContext default constructor it fails.
All my jars are signed and I have given all permissions in the jnlp
here is the jnlp
<?xml version="1.0" encoding="utf-8"?>
<jnlp spec="1.0+" codebase="http://cs12895.adm.bju.edu/dc" href="dc.jnlp">
<information>
<title>DC App</title>
<vendor>Bob Jones University</vendor>
<homepage href="http://www.bju.edu"/>
<description kine="one-line">The Discipline Committee Application</description>
<description kind="short">The Discipline Committee Application</description>
<icon href="imageIcon.gif"/>
<shortcut online="false">
<desktop/>
</shortcut>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.5+" max-heap-size="256m"/>
<jar href="dc.jar"/>
<jar href="looks-2.0.2.jar"/>
<jar href="log4j-1.2.12.jar"/>
<jar href="jdnc20060529003752.jar"/>
<jar href="hibernate3.jar"/>
<jar href="forms-1.0.7.jar"/>
<jar href="soap.jar"/>
<jar href="swingx20060529003241.jar"/>
</resources>
<application-desc main-class="edu.bju.dc.rich.LoginFrame"/>
</jnlp>Here is the code. In this cod ethe first debug messageI see but i do not see the second message. Which is how I now it is not getting constructed.
log.debug("Setting up call to auth ws");
Call call = new Call();
log.debug("Finished setting Call up");
String soapActionURI = "urn:AuthService";OK I got it working. It was not throwing an exception but when I put I try catch looking for throwables I discovered it was looking for mail.jar. So all better now :-)
-
Error while trying to deploy a SOAP service to 9iAS
Hi,
I try to deploy the simple clock sample to Oracle 9iAS 9.0.3 and I get the following output:
This test uses a SOAP URL of http://avia.mindcti.com:7777/soap/servlet/soaproute
r
Deploying the simpleclock service...
Exception in thread "main" [SOAPException: faultCode=SOAP-ENV:IOException; msg=C
onnection refused: connect; targetException=java.net.ConnectException: Connectio
n refused: connect]
at oracle.soap.transport.http.OracleSOAPHTTPConnection.send(OracleSOAPHT
TPConnection.java:765)
at org.apache.soap.rpc.Call.invoke(Call.java:261)
at oracle.soap.client.ServiceManagerClient.invokeMethod(ServiceManagerCl
ient.java:122)
at oracle.soap.client.ServiceManagerClient.deploy(ServiceManagerClient.j
ava:135)
at oracle.soap.client.ServiceManagerClient.main(ServiceManagerClient.jav
a:229)
I get similar errors when trying to connect to the SOAP server from JDeveloper. What can be the problem?
Thanks in advance,
AviIn 903 Oracle SOAP ( based on Apache SOAP) is not configured by deafult, since Oracle SOAP is a depricated feature;
Prefered way of building web services is using 'J2EE Web services'. But if you stilll want to use Oracle SOAP web services
You need to depoy the Oracle SOAP application that is there in soap directory.
thanks
Venky Ravipati -
Odata JDBC Service: getting NullPointerException: while trying to invoke the method
Hi,
I am testing OData, for that I followed the steps given in this tutorial:
http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/06/10/creating-an-odata-service-based-on-sap-gateway-soap-jdbc-and-jpa-data-sources-ba
It wasn't working as it should, so to understand it better, I created a new project with Stock table only.
Manually entered all it's properties and then deploy it.
Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
Where as I need to enter: org.apache.derby.jdbc.ClientDriver.
Issue 2: I can't test the connection from here, weather it's working fine or not ?
Issue 3:
When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception.
URL: http://localhost:8080/gateway/odata/sap/WSTest1;v=1
Response:
<?xml version="1.0" encoding="utf-8"?>
<service xml:base="http://localhost:8080/gateway/odata/sap/WSTest1;v=1/" xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
<workspace>
<atom:title>Default</atom:title>
<collection href="StockSet">
<atom:title>StockSet</atom:title>
</collection>
</workspace>
</service>
Now I need to run StockSet, so next url to access the stock list,
to get stocks:
http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
Now I get the following response:
<?xml version="1.0" ?>
<error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<code>
</code>
<message xml:lang="en">java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of a null object loaded from local variable 'k'</message>
</error>
I am not able to figure out, why I am getting this error and how to fix it.
All I want is to create a ODAta on ESPM_STOCK sample table given in example.
Looking forward to hear from you.
Thanks.Waqas Sadiq
Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
Are you working on SMP3.0 (lower version than SP03)?
If yes, then there is character restriction in SMP3.0 (SP00, SP01), maximum length for a database driver is 25 characters.
e.g. if driver name is oracle.jdbc.driver.OracleDriver but when you enter this, then you will see onlyoracle.jdbc.driver.Oracle
Until unless we pass the correct driver value things will not work. there is a workaround for this. You create a desitnation with restricted character length.
You would be seeing a property file for each created destination underC:\SAP\MobilePlatform3\Server\config_master\service.destinations\destinations
Go there and open the created "OracleDB" and edit the "DriverName" to the full string:oracle.jdbc.driver.OracleDriver
Please go through this blog for more understanding:
http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/01/09/how-to-connect-an-oracle-db-with-integration-gateway-in-smp3
Note: seems this problem has been resolved in SMP3 SP03
Issue 2: I can't test the connection from here, weather it's working fine or not ?
I didnt find a way to test a destination. So you have to be sure about what all values you are entering.
Once you are done with Destination creation, map it to the respective deployed service under "services" tab.
Issue 3: When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception
Make sure you have corrected "Database driver" name manually. And then check if you are facing same issue.
Does this URL expect any input parameters?
http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
Regards,
JK -
Invocation of SOAP Sender Adapter using Apache SOAP
Hi,
I'm trying to invoke the XI SOAP Sender Adapter using the Apache SOAP API. It seems that my message header is missing a few parameters (see exception below). Does anybody know which to set?
Regards,
Heiko
==========
Exception:
<?xml version='1.0'?>
<!-- see the documentation -->
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s='http://sap.com/xi/WebService/xi2.0'>
<context>XIAdapter</context>
<code>Exception</code>
<text><![CDATA[
com.sap.aii.af.mp.module.ModuleException
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:502)
at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:227)
at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0.process(ModuleProcessorLocalLocalObjectImpl0.java:103)
at com.sap.aii.af.mp.soap.web.MessageServlet.callModuleProcessor(MessageServlet.java:162)
at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:507)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:392)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged1(Native Method)
at java.security.AccessController.doPrivileged(AccessController.java:321)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:159)
Caused by: java.lang.Exception: Bubble configuration error: parameter 'XI.InterfaceNamespace' is missing
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.getParaRequired(XISOAPAdapterBean.java:895)
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.createDefaultMessageHeader(XISOAPAdapterBean.java:942)
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.setup(XISOAPAdapterBean.java:214)
at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:496)
... 22 more
]]></text>
</s:SystemError>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>Hi Heiko,
You are missing the Namespace Parameter in the sender soap adapter configuration in XI3.0
Thanks
Prasad -
Package org.apache.soap does not exist
Hi,
I'm trying to deploy a webservice made out of stateless session bean.
When i run the service by invoking its method through browser then I get an exception as
Servlet error: Cannot generate Class:
package org.apache.soap does not exist
import org.apache.soap.Header;
-- It seems that the oc4j is not loading soap.jar under soap/lib
But when I add soap.jar to WEB-INF/lib then I get an exception as
java.lang.LinkageError: Class org/apache/soap/rpc/SOAPContext violates loader constraints
Which means soap.jar is loaded previosuly
The required classes are present in soap.jar
Can you please help me on this
Regards
~AnilYippee... problem solved... classpath setting problem
-
"invalid request" when calling Apache Soap 2.2 webservice using 8.1.1
I have tried setting soap-style to RPC as advised in the documentation but keep
getting this same error. Server is Apache Soap 2.2. Another test client using
Apache Soap 2.3.1 got the same error. I am trying to call a webservice in a WLI
process flow. I have generated the web service control from the wsdl. Error follows:
<01-Oct-2003 11:04:04 o'clock EST> <Warning> <WLW> <000000> <Id=bank_so_11; Meth
od=processes.bank_so_1.GetNextAccountNumber(); Failure=com.bea.control.ServiceCo
ntrolException: SOAP-ENV:Clientinvalid request>
<01-Oct-2003 11:04:04 o'clock EST> <Warning> <WLW> <000000> <Id=top-level; Metho
d=processes.TestWSBank_wf.$__clientRequest(); Failure=com.bea.wli.bpm.runtime.Un
handledProcessException: Unhandled process exception [ServiceException]>
<01-Oct-2003 11:04:04 o'clock EST> <Error> <WLW> <000000> <Failure=com.bea.wli.b
pm.runtime.UnhandledProcessException: Unhandled process exception [ServiceExcept
ion]>Hi Jerry,
There is not much to go on here to help solve your problem. Can you
successfully invoke the external service from Workshop's Test View? If
this works OK you might ask your question to the integration newsgroup
and see if they have some insight:
http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.integration
Hope this helps,
Bruce
Jerry Shea wrote:
>
I have tried setting soap-style to RPC as advised in the documentation but keep
getting this same error. Server is Apache Soap 2.2. Another test client using
Apache Soap 2.3.1 got the same error. I am trying to call a webservice in a WLI
process flow. I have generated the web service control from the wsdl. Error follows:
<01-Oct-2003 11:04:04 o'clock EST> <Warning> <WLW> <000000> <Id=bank_so_11; Meth
od=processes.bank_so_1.GetNextAccountNumber(); Failure=com.bea.control.ServiceCo
ntrolException: SOAP-ENV:Clientinvalid request>
<01-Oct-2003 11:04:04 o'clock EST> <Warning> <WLW> <000000> <Id=top-level; Metho
d=processes.TestWSBank_wf.$__clientRequest(); Failure=com.bea.wli.bpm.runtime.Un
handledProcessException: Unhandled process exception [ServiceException]>
<01-Oct-2003 11:04:04 o'clock EST> <Error> <WLW> <000000> <Failure=com.bea.wli.b
pm.runtime.UnhandledProcessException: Unhandled process exception [ServiceExcept
ion]> -
Synchronous BPEL process calling apache soap 2.3.1 service(s) on jboss
I have a problem that is quite frustratiing. I have a very simple synchronous BPEL process and I am trying to invoke some legacy services we have deployed using Apache soap 2.3.1 running on jboss. The process executes, the service executes, but the return value is not received by the BPEL process.
I used obtunnel to capture the data flow and everything seems fine from that perspective. The problem is, if you watch the monitor, the status says active, but the BPEL process returns immediately. It does not wait for the response, so the return value winds up being null. I have tried this numerous times with several services and the result is always the same. This is a serious problem for us. Any suggestions/insight would be very much appreciated.
Ina case there are any doubts as to whether or not it is actually a synchronous process, from the BPEL code:
<!--
Oracle JDeveloper BPEL Designer
Created: Wed Apr 18 13:19:50 EDT 2007
Author: bmurray
Purpose: Synchronous BPEL Process
-->
Below is an example from obtunnel:
==============
Listen Port: 5678
Target Host: pian.wlgore.com
Target Port: 8080
==== Request ====
POST /soap/servlet/rpcrouter HTTP/1.1
Host: pian.wlgore.com:5678
Connection: TE
TE: trailers, deflate, gzip, compress
User-Agent: Oracle HTTPClient Version 10h
SOAPAction: "http://vitalstream.com/webservices/Authenticate"
Accept-Encoding: gzip, x-gzip, compress, x-compress
Content-type: text/xml; charset=UTF-8
Content-length: 829
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<env:Body>
<ns0:Authenticate xmlns:ns0="http://vitalstream.com/webservices">
<strAccount xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string">testvar3</strAccount>
<strToken xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string">testvar1</strToken>
<strReferrer xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string">testvar4</strReferrer>
<strSourceURL xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string">testvar</strSourceURL>
<strClientIP xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string">testvar2</strClientIP>
</ns0:Authenticate>
</env:Body>
</env:Envelope>==== Response ====
HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-4.0.1sp1 (build: CVSTag=JBoss_4_0_1_SP1 date=200502160314)
Set-Cookie: JSESSIONID=C656EEE6B641F23F02D6E5BE79CD2A4D.ajp13w; Path=/soap
Content-Type: text/xml;charset=utf-8
Content-Length: 480
Date: Wed, 18 Apr 2007 18:34:19 GMT
Server: Apache-Coyote/1.1
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:AuthenticateResponse xmlns:ns1="http://vitalstream.com/webservices" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:int">1</return>
</ns1:AuthenticateResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
==============
As you can see, the value is indeed returned from the service, but BPEL indicates a null value for the return:
<messages><Invoke_1_Authenticate_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="strSourceURL"><strSourceURL xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">testvar</strSourceURL>
</part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="strToken"><strToken xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">testvar1</strToken>
</part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="strAccount"><strAccount xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">testvar3</strAccount>
</part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="strClientIP"><strClientIP xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">testvar2</strClientIP>
</part><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="strReferrer"><strReferrer xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema" xsi:type="def:string" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">testvar4</strReferrer>
</part></Invoke_1_Authenticate_InputVariable><Invoke_1_Authenticate_OutputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Result">null</part></Invoke_1_Authenticate_OutputVariable></messages>Did you specify the correct message type for your return variable?
<Invoke_1_Authenticate_OutputVariable>
<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="Result">
null
</part>
</Invoke_1_Authenticate_OutputVariable>
As is returns:
<ns1:AuthenticateResponse
xmlns:ns1="http://vitalstream.com/webservices" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<return xsi:type="xsd:int">1</return>
</ns1:AuthenticateResponse>
Regards,
Marc -
Hi,
Has anyone tried to develop/deploy a web service under WSDP and invoke it from a client app written under Apache SOAP-RPC? Can this be done w/ or w/o 'axis'
from Apache-SOAP?
Thanks,
Marciayes, this can be done ...and even vice versa.
This is just a soap call and it dees not matter from where it is called.
Generate the webservice and deploy it. Use the WSDL generated to create the client with Apache Soap. Point to the end point URL for the webservice made with JAX-RPC.
I tried by creating a webservice with Apache Soap-RPC and accessing through the client made with Jax-RPC.
regards
Maybe you are looking for
-
Can i do facetime with pc user?
C How do i do facetime with android and pc user friends?
-
How to follow up autoresponder email to be sent out 5 days after a previous email? Assuming I have an original content from the autoresponder: Message 1: Lorem Ipsum Lorem Ipsum Lorem Ipsum Lorem Ipsum Then on the next 5 days I will send new email wi
-
Time machine cant see old backups with New Macbook
Hello, I recently migrated from an iMac to a MacBookPro6. I plugged in my externals hard drive into my Macbook and was accessing old backups from my iMac without a problem. THEN I used the hard drive to backup with time machine and now I cannot acces
-
Crystal Reports 10 Pro Crashing when running report
Server: Intel Xenon X3323 Quad Core 2.5 GHz LAMP Configuration 1.5GB Ram Centos 5.1 Linux Server Mysql 5.0.45 Workstation Windows XP Pro 2 GB Ram Crystal Reports 10 Pro ODBC SYSTEM DSN Connector Mysql ODBC 5.1.5 Connector Issue Report Crashes when w
-
How i should move rowset to some record and make all binded components refr
Hi Thank you for eading my post I have a Rowset and dataprovider , I use a DropDown process change value to move rowset one stepforward. i used logging to make sure that it goes forward. Now all text components that are binded to That rowset should b