UCS WebService Wrapper
Does anyone know of an existing or have interest in collaborating on creating a web service wrapper for the UCS XML API?
I today encountered this problem as well and perhaps many others.
Fortunately the solution exists and thanks to mslinn (Mike) for posting the solution in this thread on the Old Nabble forum
(archive for the mailing list: [email protected]).
I'll copy/paste the solution here so this solution will be easier to find for others:
The Flex SDK can do what you want, but the default behavior is for it to unwrap collections and enclosing types which only contain one item. This default was not a good idea, IMO.
Have you tried setting Operation.forcePartArrays true?
http://livedocs.adobe.com/flex/3/langref/mx/rpc/soap/Operation.html#forcePartArrays
You will need to obtain the mx.rpc.soap.Operation from the WebService first.
You can alter the default behavior by writing a custom deserializer (which is a non-trivial task, made more difficult by the ASDoc being turned off.)
For more information about Flex WebService, see my slide show and YouTube video at http://www.slideshare.net/mslinn/using-flex-with-enterprise-web-services
Rgds
William Chau
Similar Messages
-
Setting up a webservice url for consumption in browser
Hi,
I am new at webservices and all this fancy stuff...
I managed to set up a webservice wrapper in NW Developer
Studio for my stateless session bean endpoint creating an order in our 3rd party erp system.
So far so good, I ceated a client proxy and a client jsp for testing purposes, and that works as well.
But I cant manage to find out how to call it directly
from a web browser, so that it posts the order and
returns with the result string. I tried the following:
http://host:50000/OrderRequestForEBasis/Config1?wsdl
&endpoint=Config1Port_Document
&operation=public abstract test.types.p2.OrderRequestResponse test.OrderRequestForEBasisViDocument
.orderRequest(test.types.p2.OrderRequest)
throws java.rmi.RemoteException,
test.RemoveException,
test.Exception
&formStatus=SUBMIT
&formAddElement=
&formRemoveElement=
&iparameters_orderRequest=
<<parameter 1 holding an XML string>>
&iparameters_system=
<<parameter 2 holding additional info>>
But that instructs the WAS to respond with the
webservice test web page.
Thanks for any hints
MatthiasHi Matthias,
What you did is correct. You need to create client proxy and some front end application to call your web service. You cannot directly call any web services without doing all these things.
Url you have given is WSDL of your web service. Based on this description you need to create proxy for that. You cannot directly communicate with that.
Regards,
Bhavik -
Create Entity Service as Web Service wrapper for Netweaver dev studio 7.1
Hi,
I am totally new to Netweaver.
I was trying to create a CAF service that wraps my own service.On searching i found this document
[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/11669cea-0c01-0010-63b2-b98c35b1b370] where the process was mentioned.But this document is on netweaver 7.0 and i am working on 7.1 .
Here while trying to create a entity service, its mentioned in the doc to right click on the entity service node..but in my netweaver i dont find that node anywhere..the only nodes i see are external and modeled..I am assuming the components must have chaged for version 7.1..
Can anyone tell me where i can find the updated documentation for Netweaver 7.1 to create a entity service as a webservice wrapper.
Thanks in advance.
Regards
SiriThank you Dipankar..that solved my problem.
Regards
Siri -
Hi,
I am using jboss for deploying the webservice. when i am deploying the webservice i am getting following error.
20:26:30,696 INFO [WSDLFilePublisher] WSDL published to: file:/C:/jboss4.0/jboss-4.0.0/server/default/data/wsdl/acWebSe
rvices.war/AddressWrapper.wsdl
20:26:30,696 ERROR [ServiceDeployer] Cannot startup webservice for: acWebServices.war
org.jboss.deployment.DeploymentException: Cannot deploy webservice; - nested throwable: (RuntimeMBeanException: null Cau
se: javax.xml.rpc.JAXRPCException: Cannot unmarshal jaxrpc-mapping-file: WEB-INF/AddressWrapper-mapping.xml)
at org.jboss.webservice.ServiceDeployer.deployWebservices(ServiceDeployer.java:342)
at org.jboss.webservice.ServiceDeployer.startWebservice(ServiceDeployer.java:203)
at org.jboss.webservice.ServiceDeployer.handleNotification(ServiceDeployer.java:113)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:138)
at $Proxy25.handleNotification(Unknown Source)
at javax.management.NotificationBroadcasterSupport.handleNotification(NotificationBroadcasterSupport.java:104)
at javax.management.NotificationBroadcasterSupport.sendNotification(NotificationBroadcasterSupport.java:87)
at org.jboss.deployment.SubDeployerSupport.start(SubDeployerSupport.java:178)
at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:378)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:935)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:927)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:746)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy8.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:463)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:20
4)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:215)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:194)
Here is my mapping.xml file :
<?xml version="1.0" encoding="UTF-8"?>
<java-wsdl-mapping version="1.1" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://www.ibm.com/webservices/xsd/j2ee_jaxrpc_mapping_1_1.xsd">
<package-mapping>
<package-type>com.ca.ac.webservice.wrapper</package-type>
<namespaceURI>http://com.ca.warpper</namespaceURI>
</package-mapping>
<package-mapping>
<package-type>com.ca.ac.webservice.wrapper</package-type>
<namespaceURI>http://com.ca.warpper</namespaceURI>
</package-mapping>
<java-xml-type-mapping>
<java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_RequestStruct</java-type>
<root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:test</root-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<java-xml-type-mapping>
<java-type>com.ca.ac.webservice.wrapper.AddressWrapperIntf_test_ResponseStruct</java-type>
<root-type-qname xmlns:typeNS="http://com.ca.warpper">typeNS:testResponse</root-type-qname>
<qname-scope>complexType</qname-scope>
</java-xml-type-mapping>
<service-interface-mapping>
<service-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-interface>
<wsdl-service-name xmlns:serviceNS="http://com.ca.warpper">serviceNS:AddressWrapper</wsdl-service-name>
<port-mapping>
<port-name>AddressWrapperIntfPort</port-name>
<java-port-name>AddressWrapperIntfPort</java-port-name>
</port-mapping>
</service-interface-mapping>
<service-endpoint-interface-mapping>
<service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapperIntf</service-endpoint-interface>
<wsdl-port-type xmlns:portTypeNS="http://com.ca.warpper">portTypeNS:AddressWrapperIntf</wsdl-port-type>
<wsdl-binding xmlns:bindingNS="http://com.ca.warpper">bindingNS:AddressWrapperIntfBinding</wsdl-binding>
<service-endpoint-method-mapping>
<java-method-name>test</java-method-name>
<wsdl-operation>test</wsdl-operation>
<wrapped-element/>
</service-endpoint-method-mapping>
</service-endpoint-interface-mapping>
</java-wsdl-mapping>
my wsdl :
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="AddressWrapper" targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<schema targetNamespace="http://com.ca.warpper" xmlns:tns="http://com.ca.warpper" xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
<complexType name="test">
<sequence/></complexType>
<complexType name="testResponse">
<sequence/></complexType>
<element name="test" type="tns:test"/>
<element name="testResponse" type="tns:testResponse"/></schema></types>
<message name="AddressWrapperIntf_test">
<part name="parameters" element="tns:test"/></message>
<message name="AddressWrapperIntf_testResponse">
<part name="result" element="tns:testResponse"/></message>
<portType name="AddressWrapperIntf">
<operation name="test">
<input message="tns:AddressWrapperIntf_test"/>
<output message="tns:AddressWrapperIntf_testResponse"/></operation></portType>
<binding name="AddressWrapperIntfBinding" type="tns:AddressWrapperIntf">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="test">
<soap:operation soapAction=""/>
<input>
<soap:body use="literal"/></input>
<output>
<soap:body use="literal"/></output></operation></binding>
<service name="AddressWrapper">
<port name="AddressWrapperIntfPort" binding="tns:AddressWrapperIntfBinding">
<soap:address location="REPLACE_WITH_ACTUAL_URL"/></port></service></definitions>
my webservice.xml
<webservices
xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:impl="http://com.myapp/ws4ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://www.ibm.com/webservices/xsd/j2ee_web_services_1_1.xsd"
version="1.1">
<webservice-description>
<webservice-description-name>AddressWrapper</webservice-description-name>
<wsdl-file>WEB-INF/wsdl/AddressWrapper.wsdl</wsdl-file>
<jaxrpc-mapping-file>WEB-INF/AddressWrapper-mapping.xml</jaxrpc-mapping-file>
<port-component>
<port-component-name>AddressWrapper</port-component-name>
<wsdl-port>AddressWrapperIntfPort</wsdl-port>
<service-endpoint-interface>com.ca.ac.webservice.wrapper.AddressWrapper</service-endpoint-interface>
<service-impl-bean>
<servlet-link>AddressWrapperServlet</servlet-link>
</service-impl-bean>
</port-component>
</webservice-description>
</webservices>Problem was name of xml file in webservice.xml is diff from the actually created .xml file
Problem solved
Thanks -
Oracle HRMS 11.5.10.2 Custom Alert on Leave
Hi there
I have to create a Custom Alert in Oracle HRMS on Specefic Leaves.
What Step need to be followed?
"""******Process Detai****l""""""
• Oracle Custom Alert should be created. Which will fire each time when the leave APPROVED in OTL by the authorized person.
• Email should be sent to the specefic group of people.
"""************l""""""
Any help Appritiated.
Thanks
DiscovererOracle EBS(11i and r12) does not provide you any web services.
Most of the code is in Pl/sql or C.
The next version of applications Fusion apps would have readily available web services which can be used to integrate with 3rd party solutions.
For now, you will either have to write your own Webservices(wrapper on top of Pl/sql APIs) or somehow connect to the EBS database.
There would be seeded pl/sql APIs/functions for most of the absences stuff.
Cheers,
Vignesh -
Hi,
I need to make a webservice call from remote https webservice in Jdeveloper 10.1.3 with JDK 1.4.2_13. Webservices Wrapper classes use JAx-RPC.
I run my JSP to call webservice and got the following error:
java.lang.NullPointerException at oracle.jsp.runtime.OracleJspRuntime.encodeQueryStringName(OracleJspRuntime.java:1228) at oracle.jsp.runtime.OracleJspRuntime.genPageUrl(OracleJspRuntime.java:1167) at oracle.jsp.runtime.OracleJspRuntime.genPageUrl(OracleJspRuntime.java:1132) at mrc.jspService(_mrc.java:73) [mrc.jsp]
Anybody know what this error is and how to fix it?
Thank you.hi jfu
Would you be able to find the source file, "_mrc.java", for your jsp "mrc.jsp"?
From this "_mrc.java", could you post some code from around line 73?
If possible post the part of the code in "mrc.jsp" that results in the code from around line 73 in "_mrc.java"?
regards
Jan Vervecken -
I am writing a webservice wrapper on the top of media server developed in java to enable other language application can use it.
For the sake of Streaming i used the MTOM with AXIS2.
I'm unable to stream very big documents until i enable the following parameters in axis.xml
<parameter name="enableMTOM">true</parameter>
<parameter name="cacheAttachments">true</parameter>
<parameter name="attachmentDIR">c:/tmp/</parameter>
<parameter name="sizeThreshold">4000</parameter>
But the problem is that is is storing the whole stream in the server at the give place (c:/tmp).
Instead i want the Inputstream streamed to streaming sever.
If i remove the last 3 lines client getting out of memory error.
How would i do that.
please helpI cannot report success with 10g streams, better maintenance and more useful views to track streams (static and dynamic), but still fails (like in 9i) when I have job running 12 hours, with thousands inserts/deletes/updates.
On source site I don't know how big should streams_pool_size parameter be, probably 5 GB, which we don't have, process constantly getting killed with:
ORA-23603: STREAMS enqueue aborted due to low SGA
On target side, messages are not applied, everything goes to "spillover' and STREAMS tablespace is growing and growing and growing (due to table where messages are queued).
SO, STREAMS ARE NOT GOOD FOR HUGE BATCH JOBS WHERE WE WANT ALMOST REAL TIME REPLICATION TO TARGET SIDE -
B1WS is available !!!
B1WS is a webservices wrapper around DI Server. It exposes B1 objects and services as WSDLs and gets nicely integrated with IIS and Visual Studio .NET: you can add webreferences to B1 objects and services in your C# or VB.NET project.
You can as usual download it under Business One SDK Tools. You get the setup, the documentation, samples and also source code. Enjoy.Olga,
The download for B1WS is on the main SAP Business One page here on SDN ...
https://www.sdn.sap.com/irj/sdn/businessone?rid=/webcontent/uuid/a0915b47-ef89-2a10-91a5-b22649e5cfab [original link is broken]
... or you can also locate it under the "Tools" section from the SAP Business One main page here on SDN.
I am not sure what you mean by "B1DK"?
The SAP Business One SDK is a set of COM and DCOM objects that expose the data layer of SAP Business One as well as the User Interface Layer. You can find more detail in the SAP Business One SDK Help Center documentation that comes with the SDK.
HTH,
Eddy -
Java.lang.NoClassDefFoundError: oracle/jdeveloper/webservices/runtime/WrappedDocLiteralStub error even though jdeveloper run time is in class path?
Works Fine under jdeveloper, have an issue when deployed into 11.5.10?
is there a way I can have WrappedDocLiteralStub.class copied somewhere to get through this error?
please advisePosted in similar thread. Below are contents.
As a solution, Extract the required files from jar available in JDev. Now make a seperate jar file with any name like roy.jar. In that jar file, include the classes which >>are being reported missing like WrappedDocLiteralStub. Now add this jar file to your class path on server. Thus the missing file will be available to you.Abdul Wahid -
TcUserOperationsIntf issue in a CXF/Spring/Webservice/tomcat wrapper issue
I have written several POJOs using tcUserOperationsIntf and other thor API. I am trying to expose some of these calls as web services using Spring/CXF frameworks. When i wrote a web service client, I am getting the exception below. I set JAVA_OPTS and CATALINA_OPTS environment variables to "-DXL.HomeDir=. -Djava.security.auth.login.config=C:\dev\projects\SSO\utilities\oimclient\conf\authwl.conf"
All the calls work correctly from within JDeveloper and command line JVM calls. Only when run in tomcat i am getting this issue. I am running this on tomcat 6.0.32 with same JVM linked to JDeveloper.
Any suggestions with this issue is much appreciated.
thanks in advance.
Exception in tomcat:
Getting configuration...
Login...
java.lang.SecurityException: Unable to locate a login configuration
at com.sun.security.auth.login.ConfigFile.<init>(ConfigFile.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at javax.security.auth.login.Configuration$3.run(Configuration.java:247)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.Configuration.getConfiguration(Configuratio
n.java:242)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:237)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:234)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:403)
at Thor.API.Security.LoginHandler.weblogicLoginHandler.login(weblogicLog
at oracle.iam.platform.OIMClient.login(OIMClient.java:134)
at oracle.iam.platform.OIMClient.login(OIMClient.java:114)
at Thor.API.tcUtilityFactory.<init>(tcUtilityFactory.java:155)
at springcxftest.auth.service.SsoProvisioningServiceImpl.init(SsoProvisi
oningServiceImpl.java:92)
at springcxftest.auth.service.SsoProvisioningServiceImpl.findUserKey(Sso
ProvisioningServiceImpl.java:43)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(Abst
ractInvoker.java:173)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
.java:89)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.jav
a:61)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker
.java:75)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInv
okerInterceptor.java:58)FYI,
Was able to solve this by modifying catalina.bat and adding authwl.conf path directly to JAVA_OPTS. For some reason if i set JAVA_OPTS outside tomcat is not taking it.
Just want to post it here in case others have this issue.
Regards,
Prasad. -
Error while calling a Webservice from a custom findBy operation
Hello
I have created an External Service by importing a WebService(XI) which is a wrapper for BAPI BAPI_VENDOR_GETDETAIL. Tested the webservice and it works fine.
I created an Entity Service Vendor and created 4 attributes vendorNo and companyCode, vendorName and city. I created an operation findByVendorNo then did the mapping with the webservice output.
Now when I execute, I get the following error. Tried debugging but there is no source code for the class in which this error is coming from.
Any help is appreciated.
Regards,
Shubham
com.sap.caf.rt.exception.CAFFindException: Error in mapping model of class com.sap.test.items.besrv.vendor.VendorJDO: Cannot find table for mapping class com.sap.test.items.besrv.vendor.VendorJDO
at com.sap.test.items.besrv.vendor.VendorServiceBean.findByMultipleParameters(VendorServiceBean.java:367)
at com.sap.test.items.besrv.vendor.VendorServiceBean.findByVendor(VendorServiceBean.java:300)
at com.sap.test.items.besrv.vendor.VendorServiceLocalLocalObjectImpl0.findByVendor(VendorServiceLocalLocalObjectImpl0.java:770)
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.sap.caf.rt.services.serviceaccess.ServiceWrapper.findByDataObject(ServiceWrapper.java:269)
at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessBeanImpl.findByDataObject(CAFServiceAccessBeanImpl.java:223)
at com.sap.caf.rt.services.serviceaccess.CAFServiceAccessLocalLocalObjectImpl20.findByDataObject(CAFServiceAccessLocalLocalObjectImpl20.java:875)
at com.sap.caf.rt.ui.cool.generic.AspectServiceAccess.findBy(AspectServiceAccess.java:275)
at com.sap.caf.rt.ui.cool.generic.Query.execute(Query.java:217)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.TableViewCC.execute(TableViewCC.java:323)
at com.sap.caf.ui.servicebrowser.components.visualizer.controllers.wdp.InternalTableViewCC.execute(InternalTableViewCC.java:196)
at com.sap.caf.ui.servicebrowser.components.visualizer.views.TableViewCV.onActionExcuteQuery(TableViewCV.java:353)
at com.sap.caf.ui.servicebrowser.components.visualizer.views.wdp.InternalTableViewCV.wdInvokeEventHandler(InternalTableViewCV.java:351)
at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87)
at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420)
at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132)
at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:299)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:711)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:665)
at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:232)
at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:152)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
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:33)
at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
at java.security.AccessController.doPrivileged(Native Method)
at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
Caused by: com.sap.caf.rt.exception.DataAccessException: Error in mapping model of class com.sap.test.items.besrv.vendor.VendorJDO: Cannot find table for mapping class com.sap.test.items.besrv.vendor.VendorJDO
at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.queryWithoutEntityRefs(RemoteDataAccessService.java:929)
at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.query(RemoteDataAccessService.java:746)
at com.sap.test.items.besrv.vendor.VendorServiceBean.findByMultipleParameters(VendorServiceBean.java:339)
... 44 more
Caused by: com.sap.caf.rt.exception.DataAccessException: Error in mapping model of class com.sap.test.items.besrv.vendor.VendorJDO: Cannot find table for mapping class com.sap.test.items.besrv.vendor.VendorJDO
at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.query(JDODADataAccessService.java:732)
at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.findJDOObject(RemoteDataAccessService.java:1094)
at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.processQueryResult(RemoteDataAccessService.java:961)
at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.processQueryResults(RemoteDataAccessService.java:952)
at com.sap.caf.rt.bol.da.remote.RemoteDataAccessService.queryWithoutEntityRefs(RemoteDataAccessService.java:916)
... 46 more
Caused by: javax.jdo.JDOFatalUserException: Error in mapping model of class com.sap.test.items.besrv.vendor.VendorJDO: Cannot find table for mapping class com.sap.test.items.besrv.vendor.VendorJDO
at com.sap.jdo.sql.mapping.impl.MappingModelChecker.checkDBModel(MappingModelChecker.java:323)
at com.sap.jdo.sql.mapping.impl.MappingModelChecker.visitMappingClassPre(MappingModelChecker.java:78)
at com.sap.jdo.sql.mapping.impl.MappingClassImpl.accept(MappingClassImpl.java:819)
at com.sap.jdo.sql.mapping.impl.MappingModelChecker.checkMappingClass(MappingModelChecker.java:53)
at com.sap.jdo.sql.mapping.impl.MappingClassImpl.checkConsistency(MappingClassImpl.java:278)
at com.sap.jdo.sql.mapping.impl.MappingClassImpl.checkXMLRequired(MappingClassImpl.java:294)
at com.sap.jdo.sql.mapping.impl.MappingClassImpl.getField(MappingClassImpl.java:363)
at com.sap.jdo.sql.jdbc.QueryBlock$ClassWithScopeImpl.accessField(QueryBlock.java:304)
at com.sap.jdo.sql.jdbc.SQLQueryTreeWalker$SQLQueryTreeVisitor.leave(SQLQueryTreeWalker.java:568)
at com.sap.jdo.common.query.tree.FieldAccessExpr.leave(FieldAccessExpr.java:151)
at com.sap.jdo.query.TreeWalker.walk(TreeWalker.java:61)
at com.sap.jdo.query.TreeWalker.walk(TreeWalker.java:58)
at com.sap.jdo.sql.jdbc.SQLQueryTreeWalker.<init>(SQLQueryTreeWalker.java:206)
at com.sap.jdo.sql.jdbc.SQLQueryTreeWalker.<init>(SQLQueryTreeWalker.java:168)
at com.sap.jdo.sql.jdbc.request.factory.JDBCRequestFactory.getQueryRequestImpl(JDBCRequestFactory.java:1087)
at com.sap.jdo.sql.jdbc.request.factory.JDBCRequestCloneCache.getQueryRequest(JDBCRequestCloneCache.java:339)
at com.sap.jdo.sql.jdbc.request.factory.JDBCRequestCache.getQueryRequest(JDBCRequestCache.java:476)
at com.sap.jdo.sql.jdbc.JDBCStoreManager.newQueryResult(JDBCStoreManager.java:667)
at com.sap.jdo.StoreManagerAdapter.newQueryResult(StoreManagerAdapter.java:453)
at com.sap.jdo.common.query.QueryImpl.executeWithMap(QueryImpl.java:572)
at com.sap.caf.rt.bol.da.jdo.JDODADataAccessService.query(JDODADataAccessService.java:683)
... 50 moreHi,
did you registered the web service in the external service registration? The "DataAccessException:" is a hint to this issue.
best regards,
Rene -
Error while calling WebService inside ISchedulerTask.
Hi,
Env: NW 2004s
I have a requirement of calling webservice frequently. I developed a portal project with scheduler, where the application gives a runtime error while calling/reading the property file (which is generated during the webservice proxy generation, without it webservice call is impossible).
I have varified the ear file which contains all the required class files and config files including property file.
fyi:
portalapp.xml file looks like this.
+
<?xml version="1.0" encoding="utf-8"?>
<application>
<application-config>
<property name="SharingReference" value="usermanagement, knowledgemanagement, landscape, htmlb, exportalJCOclient, exportal"/>
</application-config>
<components/>
<services>
<service name="RFServiceWrapper">
<service-config>
<property name="className" value="com.sap.netweaver.rf.wrapper.RFServiceWrapper"/>
<property name="startup" value="true"/>
</service-config>
</service>
</services>
</application>
+
Any input will be highly appreciated.
Thanks,
VinodFollowing is the error message:
msg1:
at <package>.AFFERAAFWSServiceImpl.<init>(AFFERAAFWSServiceImpl.java:10)
msg2:
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.ServiceBase.loadProtocolsFromPropertyFile(ServiceBase.java:238)
Reporting from Logs and Traces.
Error Located @ following code inside AFFERAAFWSServiceImpl.java, which is a proxy class generated using apache axis
input = this.getClass().getClassLoader().getResourceAsStream("<package>/protocols.txt");
loadProtocolsFromPropertyFile(input);
protocols.txt is another config file generated along with AFFERAAFWSServiceImpl.java, which is been used @ run time.
FYI: All these files are present on ear file. -
Calling a webservices from Oracle 10G ( 10.2.0.2)
Hi:
I am in the process of putting a database Java stored procedure that can call an external webservices.
PL/SQL Wrapper -> Java Stored Procedure-> External Web services
I loaded the following jars in the dataase.
dbwsa.jar
dbwsclient.jar
1. I am having issues consuming this external webservice from SQL*PLUS. Do you know whether I need to load any other JARS ?
2. How can I debug this issue ? I enabled TCP Monitor in JDeveloper and don't see anything when I call the PL/SQL wrapper in SQL*PLUS.
3. I can use a Java client and tested the Web services OK.
error message:
SQL> l
1 declare
2 x varchar2(100);
3 begin
4
5 x := tester.test_db1();
6* end;
SQL> /
calling
http://XX.XX.YY.121:8988/Application9-ViewController-context-root/MyWebService1S
oapHttpPort
java.rmi.RemoteException: Error parsing envelope; nested exception is:
javax.xml.soap.SOAPException: Error parsing envelope
at
view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
ub.java:99)
at
prpd.MyWebService1SoapHttpPortClient.sayhello2(MyWebService1SoapHttpPortClient.j
ava:41)
at prpd.TEST_DB.TEST_DB1(TEST_DB.java:21)
Caused by: javax.xml.soap.SOAPException: Error parsing envelope
at
oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
tation11.java:103)
at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:75)
at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:934)
at
oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:692)
at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:688)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:207)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at
view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
ub.java:76)
... 2 more
Caused by: java.lang.IllegalArgumentException
at oracle.xml.parser.v2.XMLParser.setAttribute(XMLParser.java:794)
at
oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
tation11.java:54)
... 9 more
PL/SQL procedure successfully completed.
SQL> /
thx
Rajthanks Tugduall for the comments. here are the instructions I followed to create a java stored procedure that can call a webservices. Unfortunately, this seems like a very complex task. Do you have any ideas how I could debug or troubleshoot this issue ?
Please note that I used JDeveloper to generate the client code.
========================================================
1. download the dbws-callout-utility-10R2.zip from OTN at:
http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
2. create an application/project with 1.4 JDK.
3. create a web service by ‘Business Tier’->Web Service->Web Service Proxy->UDDI
4. next… to ‘Search for’, type ‘quote’.
5. from the list select one. For me ‘Quote of day’ was picked.
6. click Next all the way to Finish.
7. from the ‘Application Sources’ select ‘QuotoProxy’ then find its main method.
8. at the section
// Add your own code here, add the line like:
System.out.println("quote "+myPort.getQuote());
9. run it to see its return.
10. cteate a class that has a method to call client method to be invoked (static)
like the following:
package dbws;
import dbws.QotdPortClient;
public class MainClientStub {
public MainClientStub() {
public static String getMyQoute(){
QotdPortClient myClient = null;
try {
myClient = new QotdPortClient();
return myClient.getQuote();
} catch (Exception e) {
e.printStackTrace();
return null;
note that the package name in your project.
11. create a deployment profile as ‘JAR File’. Uncheck the box ‘Project Dependencies’
12. deploy it to the local box. ‘Deploy to JAR File’.
13. unzip the dbws-callout-utility-10R2.zip to get dbwsa.jar.
14. execute the following from command line:
loadjava –user test/[email protected] -resolve –verbose –synonym –grant public to dbwsa.jar myarchive1.jar
loadjava -user test/test@orcl1020 -resolve -verbose -synonym -genmissing -grant public myarchive1.j
ar dbwsa.jar
loadjava -user sys/<sys_pass> -resolve -verbose -synonym -genmissing -grant public myarchive1.jar dbwsa.jar
15. create a function like the following:
CREATE OR REPLACE FUNCTION teststub RETURN VARCHAR2 AS
LANGUAGE JAVA NAME ‘dbws.MainClientStub.getMyQoute() return java.lang.String’;
16. Run at sqlplus: Select teststub from dual;
====================================================== -
Calling a Webservice from other Webservice
Hi,
am using oracle appserver R3 & oc4j10.1.3 with build in1.5...._b05. I have deployed a webservice as application A .it got deployed and tested successfuly. Now i writen Webservice B which will call the previous webservice A.
am following wsdl to java approch for creating webservice.
But's it failing at the following code execution
_port = ((com.iflex.fcubs.gw.ws.types.FCUBSCustomerService)factory.loadService(com.iflex.fcubs.gw.ws.types.FCUBSCustomerService.class)).getFCUBSCustomerServiceSEI();
Exception is
java.lang.NoClassDefFoundError: oracle/j2ee/ws/common/util/localization/Localizable
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at oracle.j2ee.ws.client.ServiceFactoryImpl.createService(ServiceFactoryImpl.java:92)
at oracle.j2ee.ws.client.ServiceFactoryImpl.loadService(ServiceFactoryImpl.java:121)
at com.iflex.adap.GWOC4JWebServiceInvoker.callService(GWOC4JWebServiceInvoker.java:40)
and i downloaded wsclient_extended.zip took the jar file out of that and put in webservice\lib and applib directories.
Now am get in other excepiton in same code..
new Exception Trace is :
java.lang.LinkageError: loader constraints violated when linking oracle/webservices/transport/ClientTransport class
at com.iflex.fcubs.gw.ws.types.runtime.FCUBSCustomerService_Impl.getFCUBSCustomerServiceSEI(FCUBSCustomerService_Impl.java:60)
at com.iflex.adap.GWOC4JWebServiceInvoker.callService(GWOC4JWebServiceInvoker.java:51)
at com.iflex.adap.seibel_wrapper.wrapper(seibel_wrapper.java:52)
line @#60 of FCUBSCustomerService_Impl
com.iflex.fcubs.gw.ws.types.runtime.FCUBSCustomerService_Stub stub = new com.iflex.fcubs.gw.ws.types.runtime.FCUBSCustomerService_Stub(handlerChain);
Please this is very urgent.. look for more help..
please........ help me to come out from the proplem..
Thankfully,
BogiI have done this before, essentially all the webservice should have to do is access the generated client stub for the web service it is calling.
Web service #1
+ business logic
+ client stub to Web service ----------------------------------------> Web service #2
I think you need to package all the classes used by the Web service client into the your Web service's EAR.
I tried this in JDev and I was able to do it very quickly. I created a project and generated a Web service client stub to access the target Web Service (#2). After I was satisfied that it worked, I created the JAX-RPC based Web service. In JDev this is fairly simple. Just create an interface that extends java.rmi.remote, and a implementation of the interface. Afterwards right click on the class and JDev will bring up a dialog box, one of the options is to generate a Web service.
I did this all within the context of a single JDev project. This way I didn't have any issues with packaging two separate applications. In one of my methods of my Web service I would call the Web service using the generated client stub.
In a separate project I generated a client to access the Web service (#1). -
Hello,
I'm generating a webservice from pl/sql package which returns a collection.
JDeveloper generates wrapper pl/sql which gives errors when executed in the database because it consists of code like:
PROCEDURE "NAME"$PROC_NAME_A
The " creates database errors. When i remove these " the packages compiles.
But when i insert the service based upon this procedure, I get an "PLS-00103: Encountered the symbol "$" when expecting something else" error.This looks like the same code is inserted again.
Anyon an idea to get rid of these problems?
Regards,
Ruben SpekleI'm having the same problem. Did anyone ever help you, or have you resolved this yet?
Maybe you are looking for
-
Randomly Apple TV can't play Movies/Tv shows and music.
I've seen other people having problems with this issue but with all my searching, have not found an answer and thought I'd share my experience in case someone has a solution or suggestion. Our cable modem service comes into an access pannel in the be
-
Problem with installing Souncarddriver Soundblaster L
hi i know my englisch is not so good. When im installing the Soundblaster driver i became a message like This http://img.myimg.de/Fehlermeldung6f7.jpg i know 00 percent that i have a soundblaster Li've Soundcard. To see this i had downloaded "Aida32"
-
I recently purchased a season tv show. It downloaded fine...now, how do I watch it on my iPad?
-
Hi everyone! one short question: how can I add close-Icons to a JTabbedPane? every panel should have a "X" - ImageIcon, so that it can be closed with a mouseclick. thank you! Guido
-
Got a iPad camera connector kit. It is not working as expected. It is not able to read any photos. Both the USB connector and sd card reader arenot showing any photos on iPad. Tried copying all photos directly in DCIM folder. Still no result. Any oth