Invoke webservice from XI
Dear XI Experts,
I am doing a scenario where Client -
XI -
RFC(R/3 System.). Here Client provides me a wsdl file. I import wsdl file in ED and create MT, MI, MM and IM. Web service should be invoked only once in a day.
Now there are two ways to invoke the web service of Client
1. Send request from Client to XI with the POs
2. From XI Invoke the web service of Client by writing custom code. (If I am not wrong please correct me if there more ways of invoking the web service.)
First case will not happen in my scenario as my client will not send me the request. I have to proceed with second case.
I have couple of question about the second case.
1. How do I invoke Client web service from XI?
2. I think I have to write scheduler custom code in XI to invoke Clinet web service? But where do I write the code.
3. The program should run every day at 10 am.
Please let me know the possible ways of execute this scenario. If any one is vague with the scenario and question raised by me , please let me know I may explain in more detail but I think this is ok.
Any suggestion and ideas will be appreciated
Thanks in advance
.
Hi,
>>>>2. From XI Invoke the web service of Client by writing custom code. (If I am not wrong please correct me if there more ways of invoking the web service.)
you can but you need to call it from a BPM
(via scheduled report for example)
if you call it in a sync way you will get the results immediately
Regards,
michal
Similar Messages
-
ProcessRemoteException when invoke webservice from Oracle E-Business Suite
Hi,when i invoke webservice from Oracle E-Business Suite R12.1 – Integrated SOA Gateway’s
I get following exception.
fuego.soaptype.SoapExecutionException
at fuego.soaptype.SoapCall.processRemoteException(SoapCall.java\:750)
at fuego.soaptype.SoapCall.invoke(SoapCall.java:238)
at fuego.soaptype.SoapObject.invoke(SoapObject.java:309)
at fuego.lang.Invokeable.invokeImpl(Invokeable.java:234)
at fuego.lang.Invokeable.invokeDynamic(Invokeable.java:188)
at xobject.Fuego__AutoGen__Screenflows__.__SubmitReport.initializeReport(__SubmitReport.xcdl:30)
at.......
this webserivce has been deployed and granted. and I can test it with soapUI.
my code:
configuration as Configuration = Configuration("FND_PROGRAM_Service");
endpoint as HttpEndpoint=HttpEndpoint("http://ep066020.bscdev.net:8002/webservices/SOAProvider/plsql/fnd_program/");
endpoint.setUsername("sysadmin");
endpoint.setPassword("sysadmin");
configuration.endpoint = endpoint;
usernameTokenPlain as UsernameTokenProfileSecurityPolicy=UsernameTokenProfileSecurityPolicy("sysadmin","sysadmin");
usernameTokenPlain.usernameTokenPasswordType = UsernameTokenPasswordType.PASSWORD_TEXT;
policies as SecurityPolicy[];
policies[]=usernameTokenPlain;
configuration.securityPolicies = policies;
service as FND_PROGRAM_Service= FND_PROGRAM_Service(configuration)
sh as SoaHeader = SoaHeader();
sh.namespace="";
sh.responsibilityApplName="SYSADMIN"
sh.responsibilityName="System Administrator"
sh.securityGroupName="STANDARD"
sh.nlsLanguage="AMERICAN"
pam as InputParameters9 = InputParameters9()
result as OutputParameters
pam.application="SQLGL";
pam.executableshortname="ENABLED"
do
logMessage "333333333333333";
executableexists service
using header = sh,
body = pam
returning result = bodyOutput (throw exception)
logMessage "2222222222222";
reportSF.description=String.valueOf(result.fndprogram24executableexists)
reportSF.comments="11111111111";
on ex as Any
logMessage "aaaaaaaaaaaa"+ex
endI've encounter something similar to you're problem and it was resolved by manually creating the object using the web service constructor and inputting user credentials. If you manually instantiate your web service wrapper object and set a a security profile token, it may solve your problem. You can also pass in the web service endPoint URL, if you want.
Fuego.WebServices.UsernameTokenProfileSecurityPolicy
I'm not sure how to use UsernameTokenProfileSecurityPolicy, but try something like this:
Fuego.WebServices.UsernameTokenProfileSecurityPolicy policy = UsernameTokenProfileSecurityPolicy();
policy.username ="mark";
policy.password = "password";
tws = YourWebService();
response = tws.callWebServiceMethod();
I realize the security profile isn't tied anywhere to the web service, but try it anyway.
There is also some fields on the webservice, tws.setRequestHeader() that may allow you to set the username and password on the request, but this doesn't make sense to me. It shouldn't be that hard.
Edited by: Mark Peterson on Mar 19, 2010 9:14 AM
Edited by: Mark Peterson on Mar 19, 2010 9:20 AM -
Invoking Webservice from oracle DB
Hi Friends,
I am facing a problem in invoking xi webservice from Oracle DB.
My Oracle Version is 8.0 and a Power bulider (5.0)on the top of DB both of this are not supporting webservice.
My requirement is to trigger an application from PB or oracle which can fetch the required data from oracle DB and push it into XI. Want to do a push not pull as in the case of JDBC.
I don't want to use a JDBC adapter since the volume of message flow will be very less.(since this will keep on polling the DB).Even though i can start/stop communcication channel externally, the business user want to do that from the PB view.Any one aware this can be done in PB -5.0 ?
is there any other option to trigger webservice for this lower version ?
Thanks for the reply.
Sunil.Hi ,
http://download.sybase.com/presentation/2003_presentations/PWB509.ppt
http://pbdj.sys-con.com/read/42590.htm
Regards,
Vinod. -
Urgent: How to invoke webservice from a remote client?
How could I invoke webservice deployed on the weblogic server on different System from client residing on my System?
I would like to know the different ways to do this and the advantages and dis-advantages of each one of them.
Thanks in advance.
Nitinnitind,
Did you figure out how to connect to Weblogic web-service remotely?
I tried doing so, but I get the following error on the client-side.
A exception was thrown from the client handler sending a JAXM message.
A stack trace for a previously logged message.
Exception in handler handleRequest() method.
Exception in thread "main" java.rmi.RemoteException: null; nested exception is:
java.lang.NoSuchMethodError
java.lang.NoSuchMethodError
at weblogic.webservice.util.FaultUtil.fillDetail(FaultUtil.java:84)
at weblogic.webservice.util.FaultUtil.fillFault(FaultUtil.java:141)
at weblogic.webservice.util.FaultUtil.exception2Fault(FaultUtil.java:184
at weblogic.webservice.core.HandlerChainImpl.handleRequest(HandlerChainI
mpl.java:183)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:
218)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.j
ava:143)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:444)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.jav
a:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
ackWebServiceSoap_Stub.java:62)
at myapp.myservice.client.NoCallbackWebServiceSoap_Stub.addition(NoCallb
ackWebServiceSoap_Stub.java:84)
at testclient.example(testclient.java:48)
at testclient.main(testclient.java:27) -
Cannot invoke WebService from Excel
I've created simple web service based on java class using Jdeveloper's 9.0.5.2 wizard. Java class looks like this
package test;
public class HelloNameClass
public HelloNameClass()
public String sayHello(String name)
return "Hello "+name;
I've generated stub class and invoked Web Service from it. Everything was OK. Then I've created VB class in Excel XP using "Web Service References Tool 2.0 for Visual Basic for Applications" and WSDL generated by JDeveloper. But when I try to invoke Web service from VB function
Function testWS(name As String)
Dim ws As New clsws_MyWebService1
testWS = ws.wsm_sayHello(name)
End Function
I got error
No Deserializer found to deserialize a ':name' using encoding style "http://schemas.xmlsoap.org/soap/encoding/" [java.lang.IllegalArgumentException]
I wonder if this problem comes from badly configured embedded OC4J container or it's just a bad SOAP realization in microsoft's toolkit. What should I do to Invoke WS from Excel?I have exactly the same problem ! I know where it comes from but i don't know how to solve it...
1. SYMPTOMS
I have two web services deployed on a OAS 10g :
- Web service 1 has no parameter (simple "Hello World")
- Web service 2 has one parameter : myparam
Both run perfectly using a java stub client or from a browser.
Web service 1 runs perfectly from a small Word/VBA application.
BUT Web service 2 doesn't run from the same application : "No deserializer found to deserialize ':myparam' using blablah..."
2. THE PROBLEM
The problem comes from the way the SOAP request message is designed.
Oracle HTTP server (Apache) NEEDS an info about the parameter in the SOAP request message that is not mandatory following SOAP specification, which is pretty bad for interoperability.
Microsoft doesn't provide that info (and it's okay because it is not mandatory) so the SOAP message is not understood Oracle-side.
3. SHOW ME
I used a TCP listener to catch the data sent and received by both Oracle to Oracle connection and VB to ORACLE.
The difference is located in the SOAP request where the parameter is introduced :
3.1. Oracle to Oracle
<SOAP-ENV:Envelope ...
<SOAP-ENV:Body> ...
<myparam xsi:type="xsd:int">10</myparam>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
3.2. VB to Oracle
<SOAP-ENV:Envelope ...
<SOAP-ENV:Body> ...
<myparam>10</myparam>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
You noticed the difference : the VB SOAP message lacks :
xsi:type="xsd:int"
It's not mandatory following the specification, but without this, it won't work on Oracle server...
I didn't find a solution yet, but perhaps this will give you some ideas ! -
Fusion Release 9 Coexistence from EBS - Invoke Webservice from EBS
The following error is seen while trying to invoke LoaderIntegrationService from EBS
Doc ID 1592028.1 has the resolution but our implementation is on cloud and we are unable to get the oimclient.jar. This is blocking our work and needs immediate help.
Need an expert advise on this issue.
java.lang.ArrayStoreException: sun.reflect.annotation.TypeNotPresentExceptionProxy
at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:673)
at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:480)
at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:306)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:241)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:88)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:70)
at java.lang.Class.initAnnotationsIfNecessary(Class.java:3168)
at java.lang.Class.getAnnotation(Class.java:3127)
at oracle.j2ee.ws.common.metadata.AnnotationHelper.getWebServiceAnnotation(AnnotationHelper.java:325)
at oracle.j2ee.ws.common.metadata.AnnotationHelper.getWebServiceAnnotation(AnnotationHelper.java:321)
at oracle.j2ee.ws.common.jaxws.WebServiceAttributes.<init>(WebServiceAttributes.java:45)
at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.processAnnotation(ServiceEndpointRuntimeModeler.java:122)
at oracle.j2ee.ws.common.jaxws.runtime.ServiceEndpointRuntimeModeler.buildRuntimeModel(ServiceEndpointRuntimeModeler.java:110)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.getRuntimeMetadata(WsClientProxyFactory.java:69)
at oracle.j2ee.ws.client.jaxws.WsClientProxyFactory.createProxy(WsClientProxyFactory.java:126)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:483)
at oracle.j2ee.ws.common.jaxws.ServiceDelegateImpl.getPort(ServiceDelegateImpl.java:467)
at javax.xml.ws.Service.getPort(Service.java:160)
at com.oracle.xmlns.apps.hcm.common.batchloader.core.loaderintegrationservice.LoaderIntegrationService_Service.getLoaderIntegrationServiceSoapHttpPort(LoaderIntegrationService_Service.java:68)
at aldr.oracle.apps.aldrhr.UploadFileUCM.runProgram(UploadFileUCM.java:165)
at oracle.apps.fnd.cp.request.Run.main(Run.java:156)Please see if the solution in (FND_SOA_SERVICE_EXECUTION_ERR Error When Invoking EBS SOA Gateway Web Service [ID 1512956.1]) is applicable.
Thanks,
Hussein -
Getting error connection timed out while invoking webservice from bpel.
Hi,
I am trying to call a secure webservice developed in .Net having extension .svc from the bpel service and in response i am getting error
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{summary=<summary>exception on JaxRpc invoke: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: Connection timed out: connect</summary>
I am able to call this web service from the java programme using HTTPClient by setting the username/password and soapaction in http Header but not from the BPEL process. This .Net service is synchronous in nature. I also set the proxy in opmn.xml but didn't got any success.
Please reply me ASAP. Need urgent help.
Thanks.Are you working on 11g ? if this is 11g
How are you invoking the webservice ...does it have any authentication..
If the webservice which you are invoking has basic http authentication...
1. In the composite.xml file, right click on the reference and configure WS policies. In security tab, add a security policy named"oracle/wss_http_token_client_policy"
2. Add two binding properties for the reference
(i) oracle.webservices.auth.username
(ii) oracle.webservices.auth.password
and provide the username and password for those two properties...
Just try this out...
Thanks,
N -
Error when invoking WebService from WTK 2.5 client
hi all,
i have developend an EJB3 webservice using JBoss4.0.5.GA...
i wrote a java client using wstools and it worked fine
Then i used StubGenerator from WTK , it generated stubs....
i then tried tocall the jbossws.. the jbossws received the call, but in i got a disaster error when i received back the response from the webservice.
this was the response from the webservice (as i checked in the WTK network monitor)
<env:Envelope xmlns:env='http://schemas.xmlsoap.org/soap/envelope/'>
<env:Header/>
<env:Body><ns1:loginResponse xmlns:ns1='http://org.jboss.ws/ejb3ws' xmlns:xsi='http://www.w3.org/2001/XMLSchema
-instance'/>
</env:Body>
</env:Envelope>and this was the exception that i was able to see in the WTK
javax.xml.rpc.JAXRPCException: java.rmi.MarshalException: (1)Missing end tag for Body or Envelope
at com.sun.j2mews.xml.rpc.SOAPDecoder.decode(+243)
at com.sun.j2mews.xml.rpc.OperationImpl.invoke(+90)
at com.mm.j2me.ws.WSRemoteSEI_Stub.login(+48)
at com.mm.j2me.midp.model.HTTPCommunicationHandler.createAccount(+36)
at com.mm.j2me.midp.model.RemoteModelRequestHandler.createAccount(+16)
at com.mm.j2me.midp.model.RemoteModelProxy.createAccount(+16)
at com.mm.j2me.midp.model.ModelFacade.createAccount(+16)
at com.mm.j2me.midp.ui.UIController$EventDispatcher.run(+277)Well, i can see both Body and Envelopen in the message that has been sent back, so can anyone tell me what's wrong with WTK??
thanks in advance and regards
marcoHi all,
as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
It is correct that is the empty tag <soapenv:Header /> causing this error.
To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
Here the class to modify:
axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
OMNamespace ns =
new OMNamespaceImpl(
SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
//createSOAPHeader(env); the line to be commented
createSOAPBody(env);
return env;
}Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
A little tricky to fix this bug but now my app runs perfectly ;)
Enjoy!
Romain Pellerin
http://www.gasp-mobilegaming.org -
Example of invoking webservices from browser
Hello,
I am totally new to webservices. I saw this posted in the discussion
WL 7.0 does allow you to access the web service through the browser. It even allows
you to invoke service methods with complex type arguments (.Net only supports
primitive types) and also to view the request and response soap message for the
invocation.
Where can I find an example ---A live example of using complex type from the test page:
http://65.193.192.35:7001/base/SoapInteropBaseService?operation.view=echoStr
uct
http://manojc.com
"pushpa krishna" <[email protected]> wrote in message
news:3ee4c2d7$[email protected]..
>
Hello,
I am totally new to webservices. I saw this posted in the discussion
WL 7.0 does allow you to access the web service through the browser. Iteven allows
you to invoke service methods with complex type arguments (.Net onlysupports
primitive types) and also to view the request and response soap messagefor the
invocation.
Where can I find an example --- -
Error in Invoking Webservices from ODI
Hi,
I started getting the below error when using the ODI Webservice Invocation Tool.
"com.sunopsis.wsinvocation.SnpsWSInvocationException: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0"
The webservice does get invoked properly inspite of the above error showing in the Operator.
Has someone faced this issue before? Hoping for a prompt response.
Regards,
Satyajithin your web.xml
<servlet>
<servlet-name>Mole</servlet-name>
<servlet-class>srvlt.Mole</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Mole</servlet-name>
<url-pattern>/Mole</url-pattern>
</servlet-mapping>
package srvlt;
// Import servlet packages
import javax.servlet.*;
import javax.servlet.http.*;
// Import other Java packages
import java.io.*;
public class Mole extends HttpServlet {
public void init() throws ServletException {}
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
try {
out.write("###some html stored in DB#####");
} finally {
out.close();
}in your jsp
<jsp:include page="/Mole" flush="false"></jsp:include> -
Invoke webservice from webservice
Hi All,
I am a newbie of using JDeveloper and I have a few questions about web service. The call flow is shown as below:
Caller(Machine C) -> web service (WS_B)(Machine B) -> web service(WS_A) (Machine A)
In Machine A :
I have deployed the web service called WS_A
In Machine B :
I have created a proxy service that points to the wsdl of WS_A. Also, I have created a webservice called WS_B that invokes the proxy service so that WS_B
can communicate with WS_A
When I check the webservice (WS_B) in the browser, it always says that "oracle.classloader.util.AnnotatedNoClassDefFoundError" . Thanks a lot.
Best regards,
DavidHi David,
If you are using JDeveloper to assemble your applications, and you have used the embedded version of oc4j, you may want to double check that all your bean have been included in the application module.
Sometime the embedded version will be working, because the .class files are in the classpath used to execute the application, while they are not found in the context of the application, once deployed on a remote container.
Check the list of classes included in your .ear. Select the node "WebServices.deploy" in the "resources" node of your project, and using right-click on the selection, select the Properties options. Under "Files Groups - WEB-INF/Classes - Filters", make sure all the classes have been selected.
Hope it helps,
-Eric -
Invoke Webservice from ODI -10
Hi,
Need to invoke a web service through ODI 10.1.3.5, I know this is possible in 11g.
Can we do it from 10 too.
Regards,
NaveenYes, the web service calling functionality is there in 10g as well.
-
Unable to invoke webservice from plsql.
Hi i am unable to invoke the web service i am getting the following error when i run the following coe can any one help out its great help thanks you
error->
Invoke_Ws : When Others -- ORA-29532: Java call terminated by uncaught Java exception: javax.xml.rpc.soap.SOAPFaultException:
Caught exception while handling request: trailing block elements must have an id attribute
set serveroutput on
declare
service_ sys.utl_dbws.SERVICE;
call_ sys.utl_dbws.CALL;
service_qname sys.utl_dbws.QNAME;
port_qname sys.utl_dbws.QNAME;
operation_qname sys.utl_dbws.QNAME;
string_type_qname sys.utl_dbws.QNAME;
retx ANYDATA;
retx_string VARCHAR2(100);
retx_len number;
params sys.utl_dbws.ANYDATA_LIST;
v_Group_Id VARCHAR2(4);
v_Fund_Id VARCHAR2(6);
v_Query_Date DATE;
v_Query_Object VARCHAR2(2);
v_Error_Code VARCHAR2(30);
v_Error_Message VARCHAR2(2000);
begin
service_qname := sys.utl_dbws.to_qname(null, 'RealTime_Valu_WS');
service_ := sys.utl_dbws.create_service(service_qname);
port_qname := sys.utl_dbws.to_qname(null, 'RealTime_Valu_WSSoapHttpPort');
operation_qname := sys.utl_dbws.to_qname('http://RealTime_Valu_WS_Java/RealTime_Valu_WS.wsdl/types/', 'realtimeValWsElement');
call_ := sys.utl_dbws.create_call(service_, port_qname, operation_qname);
sys.utl_dbws.set_target_endpoint_address(call_, 'http://in-blr-tbpel1.igefi.tld/pa360/RealTime_Valu_WS_360/RealTime_Valu_WSSoapHttpPort');
string_type_qname := sys.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
sys.utl_dbws.add_parameter(call_, 'groupId', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'flglnclsoft', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'queryDate', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'queryObject', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'execTimestamp', string_type_qname, 'ParameterMode.IN');
sys.utl_dbws.add_parameter(call_, 'fundId', string_type_qname, 'ParameterMode.IN');
Sys.Utl_dbws.add_parameter(Call_,'Fund_Id' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Query_Date' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Query_Object' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Error_Code' ,String_type_qname,'parameterMode.OUT');
Sys.Utl_dbws.add_parameter(Call_,'Error_Message',String_type_qname,'parameterMode.OUT');
sys.utl_dbws.set_return_type(call_, string_type_qname);
params(1) := ANYDATA.convertvarchar('MP1');
params(2) := ANYDATA.convertvarchar('Y');
params(3) := ANYDATA.convertvarchar('2009-01-30');
params(4) := ANYDATA.convertvarchar('C');
params(5) := ANYDATA.convertvarchar('00:00');
params(6) := ANYDATA.convertvarchar('MPNWS');
dbms_output.put_line('BEFORE INVOKING');
retx := sys.utl_dbws.invoke(call_, params); dbms_output.put_line('BEFORE PL/SQL DII client return ' || retx_string);
retx_string := retx.accessvarchar2;
dbms_output.put_line('AFTER PL/SQL DII client return ' || retx_string);
v_Group_Id := PARAMS(7).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Fund_Id := PARAMS(8).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Query_Date := PARAMS(9).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Query_Object := PARAMS(10).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Error_Code := PARAMS(11).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return v_Group_Id ' || v_Group_Id);
v_Error_Message := PARAMS(12).ACCESSVARCHAR2;
dbms_output.put_line('PL/SQL DII client return ' || retx_string);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Invoke_Ws : When Others -- '||SQLERRM(SQLCODE));
end;
my code is working only before the line of invoke statement..when invoke line is executed i am getting the error above mentioned
so any help!
thanks
VijayJinkala wrote:
any helpDon't use Java when PL/SQL is perfectly capable of doing the task at hand?
I have an inherent dislike of systems and application that have too many moving parts. Keep the moving parts to a minimum.. and the code is faster, more robust, and a lot easier to read, understand and maintain.
So in that regard, I do not understand what the deal is with utl_dbws and why it could not just use plain vanilla PL/SQL..? But then there are likely Java faithful that proclaims The Religion too when designing PL/SQL interface packages in Oracle... :-(
I've posted an example of how to call a web service using PL/SQL code only, no Java, in {message:id=4205205}. -
Error when invoking webservice from ODI
Hi all,
When I execute my ODI scenario ( This scenario call a BPEL websevrice ) ,I Have this error ,
please have you any idea,
com.sunopsis.wsinvocation.SnpsWSInvocationException: Error doing JNDI lookup on target jdbc/PRT_DBDS
at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java)
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.G(g.java)
at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.h.A(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:736)
Caused by: Error doing JNDI lookup on target jdbc/PRT_DBDS
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
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(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:662)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
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:1792)
at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
... 29 more
Caused by:
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server
faultSubcode:
faultString: Error doing JNDI lookup on target jdbc/PRT_DBDS
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:Error doing JNDI lookup on target jdbc/PRT_DBDS
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
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(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:662)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
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:1792)
at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java)
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.G(g.java)
at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.h.A(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:736)
{http://xml.apache.org/axis/}hostname:odiprd.gov.co
Error doing JNDI lookup on target jdbc/PRT_DBDS
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
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(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:662)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
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:1792)
at com.sunopsis.wsinvocation.client.a.a.d.a(d.java)
at com.sunopsis.wsinvocation.client.a.a.d.requestReply(d.java)
at com.sunopsis.dwg.tools.InvokeWebService.actionExecute(InvokeWebService.java)
at com.sunopsis.dwg.function.SnpsFunctionBase.execute(SnpsFunctionBase.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.g.G(g.java)
at com.sunopsis.dwg.dbobj.SnpScen.a(SnpScen.java)
at com.sunopsis.dwg.dbobj.SnpScen.localExecuteSync(SnpScen.java)
at com.sunopsis.dwg.tools.StartScen.actionExecute(StartScen.java)
at com.sunopsis.dwg.function.SnpsFunctionBaseRepositoryConnected.execute(SnpsFunctionBaseRepositoryConnected.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
at com.sunopsis.dwg.cmd.DwgCommandScenario.treatCommand(DwgCommandScenario.java)
at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
at com.sunopsis.dwg.cmd.e.k(e.java)
at com.sunopsis.dwg.cmd.h.A(h.java)
at com.sunopsis.dwg.cmd.e.run(e.java)
at java.lang.Thread.run(Thread.java:736)
Thanks
Edited by: user7305244 on 19 janv. 2011 04:47Hi all,
as many developers I have encountered the famous "java.rmi.MarshallException:(1)Missing end tag for Body or Envelope" during the development of my WS app for J2ME (JSR 172).
It is correct that is the empty tag <soapenv:Header /> causing this error.
To fix this error, it is necessary to stop the server to generate this empty header in the response stream.
I have fixed this error for Axis2: unfortunaly it is necessary to modify a class in Axiom library. This library is used in Axis2 to produce the SOAP response, you can download the source code at http://ws.apache.org/commons/axiom/source-repository.html.
Here the class to modify:
axiom\modules\axiom-impl\src\main\java\org\apache\axiom\soap\impl\llom\soap11\SOAP11Factory.java
by commenting the line 273 in the method called getDefaultEnvelope() to prevent the empty header insertion in SOAP response:
public SOAPEnvelope getDefaultEnvelope() throws SOAPProcessingException {
OMNamespace ns =
new OMNamespaceImpl(
SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI,
SOAP11Constants.SOAP_DEFAULT_NAMESPACE_PREFIX);
SOAPEnvelopeImpl env = new SOAPEnvelopeImpl(ns, this);
//createSOAPHeader(env); the line to be commented
createSOAPBody(env);
return env;
}Finally you have to recompile Axiom using Maven to obtain the fixed package axiom-impl.jar and to replace this package on the lib repository of your Axis2 server.
A little tricky to fix this bug but now my app runs perfectly ;)
Enjoy!
Romain Pellerin
http://www.gasp-mobilegaming.org -
Error while invoking webservice in bipublisher 10g
Hi All,
When we are invoking webservice from bi publisher 10g we are getting the following error.
Error: java.util.arraylist
Can any one help us.
Thanks.Is there any log you can paste here
you should have the logs in
~BIPublisherTrialEdition\bip\server\domains\bipdomain\servers\bipserver\logs
Maybe you are looking for
-
Make Checboxes In To Array In Dreamweaver (PHP)
Hi guys, am designing a seat reservation system. i want the check boxes to represent the seats I want to know how to make each check boxes into array and how to group all the check boxes in a single canvas so that it will store multiple values in one
-
Interactive Forms - Printing in mySAP ERP
Dear All. As far i Know, in the version ECC 5.0 some SmartsForns have been suffers a migrations to Interactive Forms. As far has i know in the release ECC 6.0 all the Smartforms and the old Sapscript will be convert to Interactive Forms. Is this
-
OS10.8 and HP printer problems
I'm having problems printing wirelessly with my MacBook Pro OS10.8.4 and my HP Officejet Pro 8500A. Initially I had no problems at all. However now, I can print in colour, but each time I select black and white printing the printer crashes (lights fl
-
How to install premiere elements 9
hi I need help. have a mac 6gigs ram, 8ghz processor more than 100gigs hard drive available just installed premiere e 9 on my computer but it doesn't start. It is a trial version, just download it. would like to try before buying how can I solve this
-
Query run in Browser 3 sec but with webpage is 60 sec
Hi, When I run a query in the browser from the query screen, it takes 3 seconds to run. I created a webpage with only that query and blocks for conditions, exceptions. We access the webpage through the portal and it takes anywhere from 30-90 second