Invoking a webservice from a webclient
I have created a webservice.It is deployed , i can call web service from console application.But i want to invoke that web service from a web client , so i have to invoke it from javascript.I seriously dnt have any idea abt it.I searched on the net but i am not getting anythng.The code i get from net is either console based or for rpc.I m using document style while creating wsdl.
This is my console based client:
I send 2 files (convert it into String) and get 1 file (in the String format)
private static void sort() throws Exception {
//Create the request MeritListServiceStub.Sort request = new MeritListServiceStub.Sort();
// Convert the files to their string representations
String xml_data_file_string = XmlToString(new File("D:\\ws_client\\data\\Sort\\student.xml"));
String xml_param_file_string = XmlToString(new File("D:\\ws_client\\data\\Sort\\student_param.xml"));
request.setParam0(xml_data_file_string);
request.setParam1(xml_param_file_string);
//Invoke the service
MeritListServiceStub.SortResponse response = stub.sort(request);
System.out.println("Response : " + response.get_return());
}
This forum is about Oracle Database. not about Oracle Data Integrator.
Kindly post in the correct forum https://forums.oracle.com/forumID=374
Sybrand Bakker
Senior Oracle DBA
Similar Messages
-
Invoking a webservice from Oracle ODI 11.1
Hello there, new to this forum but I am having trouble invoking a webservice from a package within ODI. The error message I am recieving is as follows.
com.sunopsis.wsinvocation.SnpsWSInvocationException: javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:73)
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1235)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:139)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
at java.lang.Thread.run(Thread.java:662)
Caused by: javax.xml.ws.WebServiceException: java.lang.ExceptionInInitializerError
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:188)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1237)
... 6 more
Caused by: java.lang.ExceptionInInitializerError
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:173)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1235)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:278)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
... 1 more
Caused by: java.lang.ClassCastException: com.sun.xml.bind.v2.runtime.JAXBContextImpl
at com.sun.xml.internal.ws.fault.SOAPFaultBuilder.<clinit>(SOAPFaultBuilder.java:533)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.doInvoke(DispatchImpl.java:173)
at com.sun.xml.internal.ws.client.dispatch.DispatchImpl.invoke(DispatchImpl.java:195)
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsClientImpl.requestReply(OdiJaxwsClientImpl.java:66)
at oracle.odi.wsinvocation.client.impl.jaxws.OdiJaxwsOracleClientImpl.requestReply(OdiJaxwsOracleClientImpl.java:44)
at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1237)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:139)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:279)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:656)
... 1 more
Eventually, I would like to query a documentum DB but I can't get a simple webservice call to work correctly. Any help will greatly be appreciated.This forum is about Oracle Database. not about Oracle Data Integrator.
Kindly post in the correct forum https://forums.oracle.com/forumID=374
Sybrand Bakker
Senior Oracle DBA -
Invoking a webservice from a servlet
Hi,
I am able to invoke a webservice using a Standalone java program. I am using the below command to invoke the web service.
java com.javasrc.webservices.age.AgeServiceClient -lhttp://localhost:8080/axis/services/AgeService "Siva" 33
Now if I write the whole code in a method I am not able to retreive the values into the servlet. Can any please suggest me how to invoke a web service from a servlet/JSP. Please tell if there any sites for this.
Here is my Client code:
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import org.apache.axis.utils.Options;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
public class AgeServiceClient
public static void main(String [] args)
try
Options options = new Options(args);
String endpointURL = options.getURL();
String name;
Integer age;
args = options.getRemainingArgs();
if ((args == null) || (args.length < 2))
name = "NoName";
age = new Integer( 0 );
else
name = args[ 0 ];
age = new Integer( args[ 1 ] );
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpointURL) );
call.setOperationName( new QName("http://age.webservices.javasrc.com", "age") );
call.addParameter( "arg1", XMLType.XSD_STRING,ParameterMode.IN);
call.addParameter( "arg2", XMLType.XSD_INT, ParameterMode.IN);
call.setReturnType( org.apache.axis.encoding.XMLType.XSD_STRING);
String ret = (String) call.invoke( new Object[]{name,age});
System.out.println("Age result : " + ret);
catch (Exception e)
System.err.println(e.toString());
Thanks in advance
PrashanthThis is very simple maybe you don't have servlet experience.
Simply you create a servlet and put your client main method in another one (not static method) + importing jar of your client and other associated jar files in WEB_INF\lib folder of servlet.
check for helloworld servlet then you can implement servlet for your client. -
Problems Invoking Ebiz Webservice from 11g FMW Serve
Hi All,
We need to invoke a Webservice deployed on Ebiz host from 11g FMW Server in our PIP.
I created a simple BPEL process to invoke Ebiz Webservice and deployed the bpel process on 11g Server.
While executing the bpel process Iam getting Null Pointer Exception from Ebiz Webservice.
After checking the logs of Ebiz it was understood that SOA Provider is unable to recognize wsa header tags in the soap message used to invoke Ebiz Webservice.
Error message from logs is "An error occurred for port: AppsWSProvider: oracle.webservices.provider.ProviderException: java.lang.NullPointerException."
Unexpected header encountered: NameImpl: [localName: To, prefix:wsa, uri:http://www.w3.org/2005/08/addressing]
oracle.apps.fnd.wf.ws.common.WSException: InvalidHeader: Unexpected header encountered.
at oracle.apps.fnd.wf.ws.common.SOAPUtils.extractHeaders(SOAPUtils.java:92)
at oracle.apps.fnd.wf.ws.server.AppsWSProvider.processMessage(AppsWSProvider.java:470)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:958)
at oracle.j2ee.ws.server.WebServiceProcessor$1.run(WebServiceProcessor.java:388)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:385)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:481)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
11g FMW Server is automatically adding these WSA Header tags in the soap message to invoke Webservice deployed on Ebiz host.
Have anyone encountered similar kind of issue?
Regards,
Sunitha.MHi
Hope below URL will resolve your issue
URL: https://cn.forums.oracle.com/forums/thread.jspa?threadID=1099613
Regards,
Phanikanth -
Re: Problems Invoking Ebiz Webservice from 11g FMW Server
Hi All,
We need to invoke a Webservice deployed on Ebiz host from 11g FMW Server in our PIP.
I created a simple BPEL process to invoke Ebiz Webservice and deployed the bpel process on 11g Server.
While executing the bpel process Iam getting Null Pointer Exception from Ebiz Webservice.
After checking the logs of Ebiz it was understood that SOA Provider is unable to recognize wsa header tags in the soap message used to invoke Ebiz Webservice.
Error message from logs is "An error occurred for port: AppsWSProvider: oracle.webservices.provider.ProviderException: java.lang.NullPointerException."
Unexpected header encountered: NameImpl: [localName: To, prefix:wsa, uri:http://www.w3.org/2005/08/addressing]
oracle.apps.fnd.wf.ws.common.WSException: InvalidHeader: Unexpected header encountered.
at oracle.apps.fnd.wf.ws.common.SOAPUtils.extractHeaders(SOAPUtils.java:92)
at oracle.apps.fnd.wf.ws.server.AppsWSProvider.processMessage(AppsWSProvider.java:470)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doEndpointProcessing(ProviderProcessor.java:958)
at oracle.j2ee.ws.server.WebServiceProcessor$1.run(WebServiceProcessor.java:388)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:396)
at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:385)
at oracle.j2ee.ws.server.provider.ProviderProcessor.doRequestProcessing(ProviderProcessor.java:481)
at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
at oracle.j2ee.ws.server.WebServiceProcessor.doService(WebServiceProcessor.java:96)
at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:734)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)
11g FMW Server is automatically adding these WSA Header tags in the soap message to invoke Webservice deployed on Ebiz host.
Have anyone encountered similar kind of issue?
Regards,
Sunitha.MI'm using Weblogic 7.0.
You must use two jars:
- webserviceclient+ssl.jar, which you can find somewhere in the
weblogic distribution, and
- the jar containing the proxy classes, which is created by the
tool jwsCompile when you compile the webservice (edited with Workshop). For this
latter you may follow the instructions in
http://e-docs.bea.com/workshop/docs70/help/index.html#guide/
tutorial/tutFirstWebServiceIntro.html at step 8
Still, if you happen to understand what my problem is, hints for
me are really welcome. -
Unable to invoke a webservice from OdiInvokeWebService
Hi,
I have created a sample web service and deployed it on the axis2/tomcat server. I am able to invoke the webservice by the OdiInvokeWebService tool by its wsdl.
But my intention is to deploy the webservice on Weblogic Server and accomplish the same. On trying it i got the following error:
com.sunopsis.wsinvocation.SnpsWSInvocationException: AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (415)Unsupported Media Type
faultActor:
faultNode:
faultDetail:
{}:return code: 415
{http://xml.apache.org/axis/}HttpErrorCode:415
at com.sunopsis.wsinvocation.client.impl.axis.AxisClientImpl.requestReply(AxisClientImpl.java:265)
at com.sunopsis.graphical.wsclient.RequestWsPane$11$1.doInBackground(RequestWsPane.java:1174)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker$1.call(SwingWorker.java:240)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at com.sunopsis.graphical.tools.utils.swingworker.SwingWorker.run(SwingWorker.java:278)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)
at java.lang.Thread.run(Thread.java:619)
How do i deploy a webservice on Weblogic Server and call it from the OdiInvokeWebService ??Did you solve this problem?
-
How to invoke a webservice from ADF Mobile application.
Hi,
I have developed a webservice from a PL/SQL Package in jdeveloper 11.1.1.5.0 by following below link
http://www.oracle.com/webfolder/technetwork/tutorials/obe/jdev/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm#p.
it went on smooth till i reach " Deploying and Testing the Web Service " section. i could not find the Resources folder in which i have webservices.deploy file in my Project folder as shown in the example
please let me know how to get this and i want that webservice to be deployed on to weblogic server other than OC4J.
Kindly someone help me in this regards.
Thanks in advance.Hi,
Iam not that much familliar with using webmethods Integration server. But generally wen you are using a tool to Create webservices it will generate WSDL(Webservice Description file) and Client access classes. The Client access class contains the code for accessing the webservice. You can develop Clients by importing this class. The other way is you can use the WSDL to connect to the Webservice. WSDL file includes the End point URL (the location where to connect to access the webservice). By connecting to this URL you can access the webservice.
Few sites which help you in getting more info on Webservices are:
http://www.w3.org/2002/ws/
http://www-106.ibm.com/developerworks/webservices/
http://java.sun.com/webservices/
You can mail me at [email protected]
Regards
Mahen -
Invoke JCAPS webservice from Java Application
I am getting
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: JAXRPC.TIE.01: caught exception while handling request: unrecognized operation: Test
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Client
faultSubcode:
faultString: JAXRPC.TIE.01: caught exception while handling request: unrecognized operation: Test
faultActor:
faultNode:
faultDetail:
JAXRPC.TIE.01: caught exception while handling request: unrecognized operation: Test
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:260)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:169)
at org.apache.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl. java:1015)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser. java:633)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocum entScannerImpl.java:719)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDisp atcher.dispatch(XMLDocumentFragmentScannerImpl.java:1685)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDoc umentFragmentScannerImpl.java:368)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.jav a:834)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.jav a:764)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:148)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java: 1242)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
==========================================================
JAVA CODE :
public static void main(String[] args) {
// TODO code application logic here
try {
WebServiceClient wsClient = new WebServiceClient();
String strTargetNameSpaceIn ="urn:stc:egate:jce roject3_Collaboration_1" ;
String strPortNameIn = "ExecutePortType";
String strServiceNameIn ="Project3_Collaboration_1Service" ;
String strOperationNameIn ="Test" ;
//String strWebserviceURLIn = "http://165.68.202.246:8080/uddidocs/Nonesecurewebservice/testweb3/jc/wsdl_jce_jc-2145777518.wsdl";
String strWebserviceURLIn = "http://localhost:8080/uddidocs/EnvUCHDevLocal/Project3/Collaboration_1/wsdl_jce_Collaboration_1771627736.wsdl ";
String strInputIn = " Test JCAPS WebService ";
String output = wsClient.callWebService(strTargetNameSpaceIn,strPortNameIn,strServiceNameIn,strOperationNa meIn,strWebserviceURLIn,strInputIn);
System.out.println("WebService Output " + output);
} catch (Exception err) {
System.out.println( " EXCEPTION OCCURED");
err.printStackTrace();
public String callWebService(String strTargetNameSpace,String strPortName,String strServiceName,String strOperationName,String strWebserviceURL,String strInput) throws ServiceException, MalformedURLException, RemoteException
if(strTargetNameSpace==null || strPortName == null || strServiceName == null || strOperationName == null || strWebserviceURL ==null || strInput == null )
throw new IllegalArgumentException();
ServiceFactory factory = ServiceFactory.newInstance();
// for webservice target namespace
String targetNamespace =strTargetNameSpace;
// for webservice name
QName serviceName = new QName(strTargetNameSpace,strServiceName);
// for webservice port name
QName portName = new QName(strTargetNameSpace,strPortName);
// for operation name
QName operationName = new QName("urn:stc:egate:jce roject3:Collaboration_1WSDL:Test",strOperationName);
// for url of webservice ".wsdl" file
URL wsdlLocation = new URL(strWebserviceURL);
if(wsdlLocation==null)
throw new ServiceException();
// for bind to service name with wsdl file
Service service = factory.createService(wsdlLocation, serviceName);
// for call to webservice using operation name
Call call = service.createCall(portName, operationName);
String result = null;
try{
System.out.println(" STR INPUT" + strInput);
result = (String) call.invoke(new Object[] {strInput});
}catch(Exception e){
e.printStackTrace();
result="Occur webservice processing error";
if(result==null)
result="Occur webservice processing error";
String str = "Webservice Responce from :"+strWebserviceURL;
return result;
}//close function
=========================================================
WSDL FILE :
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="Project3_Collaboration_1" targetNamespace="urn:stc:egate:jce roject3_Collaboration_1" xmlns:tns="urn:stc:egate:jce roject3_Collaboration_1" xmlns:inMsg="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-8000/XSDDefinition1" xmlns:errMsg="urn:stc:egate:jce:JavaException" xmlnsutMsg="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-7fff/XSDDefinition2" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/">
<import namespace="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-7fff/XSDDefinition2" location="XSDDefinition2.xsd"/>
<import namespace="http://dn1318d-uwsxp:13000/repository/UCHDevLocal/Project3/UCHDevLocal23b1e1:1192e3ad66a:-8000/XSDDefinition1" location="XSDDefinition1.xsd"/>
<types>
<xs:schema elementFormDefault="qualified" id="UID-20000000-DC88392E190100-A544977D-01" targetNamespace="urn:stc:egate:jce:JavaException" xmlns="urn:stc:egate:jce:JavaException" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="JavaException" type="JavaExceptionType"/>
<xs:complexType name="JavaExceptionType">
<xs:sequence>
<xs:element name="Type" type="xs:string"/>
<xs:element name="Message" type="xs:string"/>
<xs:element name="Trace" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
</types>
<message name="Output">
<part name="Body" element="outMsg utput"/>
</message>
<message name="Input">
<part name="Body" element="inMsg:Input"/>
</message>
<message name="JavaExceptionMessage">
<part name="FaultDetails" element="errMsg:JavaException"/>
</message>
<portType name="ExecutePortType">
<operation name="Test">
<input name="Input" message="tns:Input"/>
<output name="Output" message="tns utput"/>
<fault name="JavaException" message="tns:JavaExceptionMessage"/>
</operation>
</portType>
<binding name="ExecutePortTypeBinding" type="tns:ExecutePortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Test">
<soapperation soapAction="urn:stc:egate:jce roject3:Collaboration_1WSDL:Test" style="document"/>
<input name="Input">
<soap:body parts="Body" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</input>
<output name="Output">
<soap:body parts="Body" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</output>
<fault name="JavaException">
<soap:fault name="JavaException" use="literal" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/>
</fault>
</operation>
</binding>
<service name="Project3_Collaboration_1Service">
<port name="ExecutePortType" binding="tns:ExecutePortTypeBinding">
<soap:address location="http://localhost:18501/WsServer/ExecutePortType"/>
</port>
</service>
</definitions>Hi Abinap.
If you are woking with JEE 1.3 or JAX-RPC.
You need to add some libraries to java project.
Go to the tab "Add Libraries" on context menu of the project: Properties --> Java build Path
Select "Add variable" button, after select the SAP_WEBSERVICES_EXT_LIBS_HOME variable and click on "Extend" Button, finally select all the libraries under lib folder, do the same to the SAP_XML_TOOLKIT_LIBS_HOME variable.
Greetings.
Manuel Loayza Gahona -
Invoking LC webservices from VB6 where "invoke" is reserved word
Hi everyone:
I'm making some poceses tests on one customer (We are running a proof of concept and positioning LC technology ) who wants to invoke LC PDF-G orchestrated services using the WS endpoint from an VB6 app.
When the VB6 app creates the proxy object to call the invoke method exposed by the LC orchestrated process an compilation error occurs,
apparently invoke is a "reserved word" for internal use in VB6, so it doesn't works...
If we try to invoke an out-of-the-box LC service from a VB6 app via the WS API all works fine!
This is part of our code:
SERVICE = ""
Port = ""
WSDL = "http://172.26.45.195:8080/soap/services/getReportTitle?WSDL"
Set objSoap = New MSSOAPLib30.SoapClient30
objSoap.ClientProperty("ServerHTTPRequest") = True
Call objSoap.MSSoapInit(WSDL, SERVICE, Port)
objSoap.ConnectorProperty("AuthUser") = "administrator"
objSoap.ConnectorProperty("AuthPassword") = "password"
Resultado = objSoap.Invoke("1")
An we attache the VB error.
How to solve this problem...??
Thanks in advance,
Diego.That's going to be tricky because any custom LC processes has a default method of invoke. You may be able to "reflect" it by creating a java service that lives on the LC server. That java service can call the LC application and could be called by the VB6 app.
On the other hand, I though Microsoft end-of-life for VB6 was back in March 2008 - so you may want to push them into using a .Net version. -
Facing issue in invoking an external webservice from 11G Bpel
Hi,
I am facing an issue in Invoking PIM webservice from 11G soa.. getting the following error in the invoke activity(Invoke calls PIM webservice).. the same thing used to work in 10.1.3.4 where i set username/pwd in the bpel.xml for that partnerlink. here in 11G i did it through "Configure WS policy" and setting oracle/wss_username_token_client_policy to true..
the error message is
<messages>
<input>
<PublicationService_GetBatchSystems_InputVariable>
<part name="body">
<PublicationService_GetBatchSystems>
<batchAndLang>
<BatchId>1543</BatchId>
</batchAndLang>
</PublicationService_GetBatchSystems>
</part>
<part name="header">
<ServiceBean_Header/>
</part>
</PublicationService_GetBatchSystems_InputVariable>
</input>
<fault>
<bpelFault>
<faultType>
<message>0</message>
</faultType>
<remoteFault>
<part name="summary">
<summary>InvalidHeader: Invalid or missing header in request.</summary>
</part>
<part name="detail">
<detail>javax.xml.ws.soap.SOAPFaultException: InvalidHeader: Invalid or missing header in request.</detail>
</part>
<part name="code">
<code>null</code>
</part>
</remoteFault>
</bpelFault>
</fault>
<faultType>
<message>0</message>
</faultType>
</messages>
i compared the payload from 10G and 11G the only difference i could find is the order of soap body and header is different.. is it because of this??
i checked in wsdlt the order is correctly declared (first header then body).. but whenever i am creating a variable on this Msg type.. and expanding the variable in jdev the order is getting reveresed.. not sure why?? there is no change in the flow from 10G to 11G.. apart from the migration.Thanks.. This works..
But it gets lost whenever we redeploy that process..
And of course even though I am seeing http user & http password can be configured in composite.xml.. It is not taking effect..
After redeploy, still the HTTP UserName & Password is blank.
<reference name="ABC"
ui:wsdlLocation="ABC.wsdl">
<interface.wsdl interface="http://oracle.abc/#wsdl.interface(WSDL_INTERFACE)"/>
<binding.ws port="http://oracle.abc/#wsdl.endpoint(ABC/ABCHttpPort)"
location="ABC.wsdl">
<wsp:PolicyReference URI="oracle/wss_username_token_client_policy"
orawsp:category="security" orawsp:status="enabled"/>
<wsp:PolicyReference URI="oracle/log_policy" orawsp:category="management"
orawsp:status="enabled"/>
</binding.ws>
<property name="oracle.webservices.auth.username" type="xs:string"
many="false" override="may">username</property>
<property name="oracle.webservices.auth.password" type="xs:string"
many="false" override="may">password.xxxxx</property>
</reference>
Client is interested in solving only through code not through UI..
Any thoughts..
Edited by: Raj.Sunnyvale on Mar 24, 2010 11:26 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. -
Invoking Web Service from JSF Managed Bean
Hi all,
I am trying to invoke a webservice from Managed Bean and getting an exception.
Server : WAS 6.1.0.2
Version :JSF 1.2
Type of WS Invocation : JAX-WS web services
IDE : RAD 7.0.0
I have set up the class path correctly and added relevant WS Client in EAR ....
Following is the exception am receiving :
[8/31/11 7:59:25:335 EDT] 0000002d WebApp E [Servlet Error]-[Faces Servlet]: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:170)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:123)
at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:84)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:204)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:171)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)
at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:627)
at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:550)
at com.sun.faces.taglib.html_basic.InputTextareaTag.doEndTag(InputTextareaTag.java:651)
at com.ibm._jsp._sample._jspx_meth_h_inputTextarea_0(_sample.java:107)
at com.ibm._jsp._sample._jspx_meth_h_form_0(_sample.java:149)
at com.ibm._jsp._sample._jspx_meth_f_view_0(_sample.java:180)
at com.ibm._jsp._sample._jspService(_sample.java:77)
at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType
at java.lang.J9VMInternals.verifyImpl(Native Method)
at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1263)
at java.beans.Beans.instantiate(Beans.java:219)
at java.beans.Beans.instantiate(Beans.java:63)
at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:226)
at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:291)
at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:81)
at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:249)
at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:140)
Thanks in advance ..
Steve BobNo you haven't, because
Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType a relevant class can still not be found and Java really is not going to lie to you; this class is not on your application's classpath so it is either missing or put in the wrong place. Note that missing classes can be caused by you forgetting to properly redeploying your application - its usually something silly like that. Figure out what you did wrong and correct your mistake.
The fact that you have to mention that you "setup the classpath" is questionable; in web applications you don't touch the classpath at all. So what exactly did you do? -
Issue in invoking the webservice on EBS 12.1.3
Hi,
We are using R12.1.3 version of EBS. We have developed the custome PL SQL logic and deployed it on the Integration repository. Generated the WSDL and Deploy process were successful on IR. Authentication type used was "Username Token". Created the necessary user grants.
When we try to invoke the webservice from SOAP UI, we are getting below error:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: System Errornull</faultstring>
<faultactor/>
</env:Fault>
</env:Body>
</env:Envelope>
Also, we checked in the log files and found below entries.
<MSG_TEXT>An error occurred for port: SOAProvider: oracle.webservices.provider.ProviderException: oracle.apps.fnd.soa.util.SOAException: ServiceProcessingError: System Errornull.</MSG_TEXT>
<MSG_TEXT>Unable to determine operation id from SOAP Message.</MSG_TEXT>
Can someone help me in this issue? We are successfully able to invoke the same webservices on R12.1 version but getting an error in 12.1.3 version!!!
Thanks in advance.
Regards,
VasanthHi,
Try seeing the log messages after doing the following setup in the instance :-
1. Telnet to environment
1. In $INST_TOP/ora/10.1.3/j2ee/oafm/config/oc4j.properties
1. Add following property at the end of the file : SOA_ENABLE_STANDALONE_LOGGING=TRUE
2. Bounce oafm container using script $ADMIN_SCRIPTS_HOME/adoafmctl.sh
3. Perform any SOA specific action like generate.
SOA specific log would be created at : $INST_TOP/soa/SOALog.log
This file should show you the exact error happening.
Thanks,
Sai.M -
Error during invokation of webservices: "error: unknown java type:"
hi,
I'm having issues with invoking a webservice from the "WebLogic Test Client". The webservice exposes the methods from a stateless session EJB and Weblogic Workshop was used to create the webservice controls
Weblogic version: 10.0 mp1
Pls. advise.
Error message ...
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header />
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>error: unknown java type: com.margin.engine.entity.ClientSet</faultstring>
<detail>
<bea_fault:stacktrace xmlns:bea_fault="http://www.bea.com/servers/wls70/webservice/fault/1.0.0">com.bea.xml.XmlRuntimeException: error: unknown java type: com.margin.engine.entity.ClientSet
at com.bea.staxb.runtime.internal.FailFastErrorHandler.add(FailFastErrorHandler.java:45)
at com.bea.staxb.runtime.internal.MarshalResult.addError(MarshalResult.java:265)
at com.bea.staxb.runtime.internal.AnyTypeRuntimeBindingType.determineActualRuntimeType(AnyTypeRuntimeBindingType.java:84)
at com.bea.staxb.runtime.internal.RuntimeBindingProperty.getActualRuntimeType(RuntimeBindingProperty.java:110)
at com.bea.staxb.runtime.internal.PushMarshalResult.walkRankOneSoapArray(PushMarshalResult.java:570)
at com.bea.staxb.runtime.internal.PushMarshalResult.walkSoapArray(PushMarshalResult.java:534)
at com.bea.staxb.runtime.internal.PushMarshalResult.visit(PushMarshalResult.java:437)
at com.bea.staxb.runtime.internal.SoapArrayRuntimeBindingType.accept(SoapArrayRuntimeBindingType.java:59)
at com.bea.staxb.runtime.internal.PushMarshalResult.writeContents(PushMarshalResult.java:192)
at com.bea.staxb.runtime.internal.PushMarshalResult.marshalTopType(PushMarshalResult.java:93)
at com.bea.staxb.runtime.internal.MarshallerImpl.marshalBindingType(MarshallerImpl.java:302)
at com.bea.staxb.runtime.internal.MarshallerImpl.marshalType(MarshallerImpl.java:435)
at weblogic.wsee.bind.runtime.internal.LiteralSerializerContext.marshalType(LiteralSerializerContext.java:70)
at weblogic.wsee.bind.runtime.internal.BaseSerializerContext.internalSerializeType(BaseSerializerContext.java:175)
at weblogic.wsee.bind.runtime.internal.BaseSerializerContext.serializeType(BaseSerializerContext.java:95)
at weblogic.wsee.codec.soap11.SoapEncoder.encodePart(SoapEncoder.java:284)
at weblogic.wsee.codec.soap11.SoapEncoder.encodeReturn(SoapEncoder.java:205)
at weblogic.wsee.codec.soap11.SoapEncoder.encodeParts(SoapEncoder.java:192)
at weblogic.wsee.codec.soap11.SoapEncoder.encode(SoapEncoder.java:119)
at weblogic.wsee.codec.soap11.SoapCodec.encode(SoapCodec.java:128)
at weblogic.wsee.ws.dispatch.server.CodecHandler.encode(CodecHandler.java:103)
at weblogic.wsee.ws.dispatch.server.CodecHandler.handleResponse(CodecHandler.java:50)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:236)
at weblogic.wsee.handler.HandlerIterator.handleResponse(HandlerIterator.java:220)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.callHandleResponse(ServerDispatcher.java:135)
at weblogic.wsee.ws.dispatch.server.ServerDispatcher.dispatch(ServerDispatcher.java:108)
at weblogic.wsee.ws.WsSkel.invoke(WsSkel.java:80)
at weblogic.wsee.server.servlet.SoapProcessor.handlePost(SoapProcessor.java:66)
at weblogic.wsee.server.servlet.SoapProcessor.process(SoapProcessor.java:44)
at weblogic.wsee.server.servlet.BaseWSServlet$AuthorizedInvoke.run(BaseWSServlet.java:257)
at weblogic.wsee.server.servlet.BaseWSServlet.service(BaseWSServlet.java:156)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
</bea_fault:stacktrace>
</detail>
</env:Fault>
</env:Body>
</env:Envelope>Olivier, thank you so much
SOAMANAGER does not exist in my system (sp level 8), so node "/sap/bc/soap/rfc" should be active. Actually, it is active.
I think the problem is related to user rights/profiles.
I have tried to create another WS after assigning role SAP_BC_WEBSERVICE_ADMIN. The same error when trying to activate it, but now, I can see this WS in SE80 (under "Enterprise Services->Service Definition"). It is not active there and if I try to activate it, a success message appears indicating that user "is not authorized to use function netzwerkadministration". I cannot see any new services in SICF...
Probably the new entry in SICF will be created after activating WS in SE80...
Do u know what user profile should I add in order to properly activate the WS in SE80?
Thank you very much!
Vicente -
Error while invoking a webservice using Axis deployed in tomacat from Bpel
Hi,
I am trying to invoke a Axis webservice(from Java class to WSDL- bottom up java bean webservice approach) developed in Exclipse IDE, deployed in Tomcat.
When i am trying to invoke the service, from Bpel from Jdeveloper it is throwing error as such :
Invoke_1 (faulted)
[2009/05/22 14:32:18] Faulted while invoking operation "storeLoanData" on provider "LoanDataPersist".less
-<messages>
-<input>
-<Invoke_1_storeLoanData_InputVariable>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="p_request">
-<p_request xmlns="" xmlns:def="http://dtos.demo.com" xsi:type="def:LoanDataPersistRequest" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<customerName>wew
</customerName>
<netIncome>12
</netIncome>
<loanAmount>12
</loanAmount>
<realEstateAddress>wew
</realEstateAddress>
<customerID/>
</p_request>
</part>
</Invoke_1_storeLoanData_InputVariable>
</input>
-<fault>
-<remoteFault xmlns="http://schemas.oracle.com/bpel/extension">
-<part name="summary">
<summary>exception on JaxRpc invoke: trailing block elements must have an id attribute
</summary>
</part>
</remoteFault>
</fault>
</messages>
I may add that, the WSDL generated is using "soap:enc:array ", rpc style.
Can anyone tell me the reason and suggest .Hi Marc,
Thanks for the guidancer. But sir, i am unable to detect at which place i have to do the required changes.I found p_request as a parameter in the method only in the interface only.
As bcos ultimately , i am generating the tomcat /axis web service (WSDL) from the java class, which is using 2 Request and response java bean, in which they are doing someing like this:
private static org.apache.axis.description.TypeDesc typeDesc =
new org.apache.axis.description.TypeDesc(LoanDataPersistRequest.class, true);
static {
typeDesc.setXmlType(new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistRequest"));
org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("customerName");
elemField.setXmlName(new javax.xml.namespace.QName("", "customerName"));
elemField.setXmlType(new javax.xml.namespace.QName("", "string"));
elemField.setNillable(true);
etc etc...................}
And second thing is when the WSDL is generated, from that the stubs and skeletons is generated to test the service.
There in the Stub i found out "p_request" in this place:
private static void _initOperationDesc1(){
org.apache.axis.description.OperationDesc oper;
org.apache.axis.description.ParameterDesc param;
oper = new org.apache.axis.description.OperationDesc();
oper.setName("storeLoanData");
param = new org.apache.axis.description.ParameterDesc(*new javax.xml.namespace.QName("", "p_request")*, org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistRequest"), com.demo.dtos.LoanDataPersistRequest.class, false, false);
oper.addParameter(param);
oper.setReturnType(new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistResponse"));
oper.setReturnClass(com.demo.dtos.LoanDataPersistResponse.class);
oper.setReturnQName(new javax.xml.namespace.QName("", "storeLoanDataReturn"));
oper.setStyle(org.apache.axis.constants.Style.RPC);
oper.setUse(org.apache.axis.constants.Use.ENCODED);
_operations[0] = oper;
And in skeleton :
static {
org.apache.axis.description.OperationDesc _oper;
org.apache.axis.description.FaultDesc _fault;
org.apache.axis.description.ParameterDesc [] _params;
_params = new org.apache.axis.description.ParameterDesc [] {
new org.apache.axis.description.ParameterDesc(*new javax.xml.namespace.QName("", "p_request")*, org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistRequest"), com.demo.dtos.LoanDataPersistRequest.class, false, false),
oper = new org.apache.axis.description.OperationDesc("storeLoanData", params, new javax.xml.namespace.QName("", "storeLoanDataReturn"));
_oper.setReturnType(new javax.xml.namespace.QName("http://dtos.demo.com", "LoanDataPersistResponse"));
_oper.setElementQName(new javax.xml.namespace.QName("urn:com.demo.service", "storeLoanData"));
_oper.setSoapAction("");
myOperationsList.add(oper);
if (_myOperations.get("storeLoanData") == null) {
_myOperations.put("storeLoanData", new java.util.ArrayList());
((java.util.List)_myOperations.get("storeLoanData")).add(_oper);
PLease suggest if i make some changes in stub and skeleton how it would reflect the WSDL... or else please suggest where shud i do the required changes.
Maybe you are looking for
-
HIGH PRIORITY:Automatic calculation of Allowable Depreciation using Dep key
HI SAP Gurus, Please help me on this requirement ASAP: Asset: 10008009 Asset class AM&E Acquisition cost: JPY2,731,807 Acquisition date: Apr.25,2007 Depn key: ZA10 Life: 8Year (0.25) expected value for asset number 10008009 is as follows, Year
-
Use a MacBook as a combi Keyboard/Mouse/Monitor?
Hi, I was just wondering if it is possible to use a lets say MacBook Air as a monitor, keyboard and mouse/trackpad for another Mac via thunderbolt or something?
-
Looking for Xcode training resource using C++
I have been programming for over twenty years in the CAD (Computer Aided Design) field, and I would like to start programming on the Mac. I have owned various Apple computers since 1987 (Apple IIGS, SE30, ... G5), and I used to code on the Mac using
-
Error while inporting the IDOC
Hi, When I am Trying to import the Idoc the following error is dispalyed. Pl go through it and reply me asap. "**Ready for import** Import started... HRMD_A.HRMD_A06: + com.sap.aii.ibrep.sbeans.upload.RemoteUploadException: Documentation DE.OBJEKTI
-
When downloadin​g e-cards i get the audio but cannot see picture or animation.
I have tried downloading e-cards containing animation. However, I only get the audio.