Error in Webservice toRFC
Hi All,
I am generating webservice in ID for an RFC and using this webservice in webdynpro application to get data from R/3 system.It is webservice to RFC synchronous scenario
In RFC response structure data type of one field is "xstring" in R/3 system. If we import this RFC in XI it is changing as "base64Binary" data type.
So if we test this webservice in SOAP sonar tool output for that field is different from the value which get in R/3 system by executing RFC in Se37.For other fields output is coming same as in R/3 output.
If data for that field is sent as "base64Binary" format to webdynpro application, it is not supported.
So in RFC particular field value is converted from "xstring" to "string" and stored in one more field.
Again RFC is imported in XI and webservice is generated.
While testing in SOAP sonar, error is coming as
com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_GetPoPdf_Res_: Fatal Error: com.sap.engine.lib.xml.parser.Parser~
New field which we added in RFC is having lot of values and there are also some special characters in that field..How to solve this issue..?
Can any one give me some useful suggestion...
Regards,
Babu
Hi All,
Can any one suggest some ideas to achieve some solution for the problem which I posted
Regards,
Babu
Similar Messages
-
Hi all,
Has anyone worked on Inspire. I am working on a typical scenario integration on primavera with PS.
But when I do start sync I get " could not start Synch. Error during webservice call"
When I check Sender SOAP CC in SAP PI in RWB , I get no information. It's status is green and no logs. Also SXMB_moni has no logs.
Is there a problem with my Sender SOAP CC confihuration .or application has failed
Can anyone help me on this.
Regards,Hi,
I tried to reach the URL using SOAPUI but got the following error :
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Application:STREAM_TRANSFORMATION_EX:
at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1193)
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:592)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
at $Proxy1413.process(Unknown Source)
at com.sap.aii.af.app.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:287)
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:592)
at com.sap.engine.services.ejb3.runtime.impl.RequestInvocationContext.proceedFinal(RequestInvocationContext.java:46)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:166)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatesTransition.invoke(Interceptors_StatesTransition.java:19)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Resource.invoke(Interceptors_Resource.java:71)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.doWorkWithAttribute(Interceptors_Transaction.java:38)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_Transaction.invoke(Interceptors_Transaction.java:22)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:189)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_StatelessInstanceGetter.invoke(Interceptors_StatelessInstanceGetter.java:16)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_SecurityCheck.invoke(Interceptors_SecurityCheck.java:21)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.Interceptors_ExceptionTracer.invoke(Interceptors_ExceptionTracer.java:16)
at com.sap.engine.services.ejb3.runtime.impl.AbstractInvocationContext.proceed(AbstractInvocationContext.java:177)
at com.sap.engine.services.ejb3.runtime.impl.DefaultInvocationChainsManager.startChain(DefaultInvocationChainsManager.java:133)
at com.sap.engine.services.ejb3.runtime.impl.DefaultEJBProxyInvocationHandler.invoke(DefaultEJBProxyInvocationHandler.java:164)
at $Proxy788.process(Unknown Source)
at com.sap.aii.adapter.soap.web.MessageServlet.callModuleProcessor(MessageServlet.java:187)
at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:513)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
at com.sap.engine.services.servlets_jsp.server.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:124)
at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:468)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:298)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:399)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:388)
at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:84)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:244)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:78)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:428)
at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:247)
at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:45)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:122)
at com.sap.engine.core.thread.execution.Executable.run(Executable.java:101)
at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:327)</text>
</s:SystemError>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>
What could be the issue. Plz help -
Hi All,
We are trying to call a webservice synchronously which is in IIS webserver.
But we are getting the following error
<SAP:Error><SAP:Category>XIAdapterFramework</SAP:Category>
<SAP:Code>MESSAGE.GENERAL</SAP:Code>
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException:
XIISUSER has no permission for accessing party service :BS_IIS
</SAP:AdditionalText></SAP:Error>
The webservice can be is of anonymous access.
Can anyone help.
Thanks in Advance
ChemmanzHi, well there is no QOS in the URL, is this the right parameter?!
<wsdl:port name="MI_BOM_OUTB_ASYNCPort" binding="p1:MI_BOM_OUTB_ASYNCBinding">
<soap:address xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" location="http://ctsr110:50100/XISOAPAdapter/MessageServlet?channel=:VM_HRT_SAP:CC_HRT_SOAP_BOM&version=3.0&Sender.Service=&Interface=%5E*"/>
</wsdl:port> -
XML parsing error in Webservices
Hi All,
We have a web services to get service order details. It shows
the following error sometimes on the browser.
"XMLParser : #0 not allowed in Character data sections (:main:, row:1, col:0)"
This particular error occurs only in quality system not in development. We found that this particular error is due to some special characters present in the service order notes(intergal/general). But same content doesn't reproduce the error in development system web services.
I tried to find the place where exactly this error is populated to webservices. But i couldn't able to acheive it.
But in transformation serializations the xml is getting filled. As of ma understanding there is no problem in serializations. Can anyone please tell the exact xml verification method/routine where this error might be thrown?.
And the special character is passed as ' #'(space#) in export parameter(table) of web services function module. But we get the error as #0 not allowed .
Your help is very much appreciated.
Thanks,
KarthikHi All,
I have solved this issue using the SAP note 1559677.
Hope it helps someone.
Thanks,
Karthik -
Bpel- Error invoking Webservice
Hi
Getting error message while invoking a webservice from Bpel.
The service is deployed in local, hence have given the localhost in wsdl url.
http://localhost:8081/PASJava/ExposedComputation?wsdl
<messages>
<input>
<Invoke2_processExposedComputation_InputVariable>
<part name="parameters">
<processExposedComputation/>
</part>
</Invoke2_processExposedComputation_InputVariable>
</input>
<fault>
<bpelFault>
<faultType>0</faultType>
<remoteFault>
<part name="summary">
<summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): http://localhost:8081/PASJava/ExposedComputation</summary>
</part>
<part name="detail">
<detail>Unable to access the following endpoint(s): http://localhost:8081/PASJava/ExposedComputation</detail>
</part>
<part name="code">
<code>null</code>
</part>
</remoteFault>
</bpelFault>
</fault>
<faultType>
<message>0</message>
</faultType>
</messages>
Pls suggest.The error message is :
<Error> <oracle.soa.bpel.engine.dispatch> <AdminServer> <orabpel.invoke.pool-4.thread-15> <<anonymous>> <> <1b8b91afeba98e17:-7d3b7bde:139e761e976:-8000-0000000000005636> <1348224359520> <BEA-000000> <failed to handle message
com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.oracle.com/bpel/extension}remoteFault}
messageType: {{http://schemas.oracle.com/bpel/extension}RuntimeFaultMessage}
parts: {{
summary=<summary>oracle.fabric.common.FabricInvocationException: Unable to access the following endpoint(s): http://localhost:8081/PASJava/ExposedComputation</summary>
,detail=<detail>Unable to access the following endpoint(s): http://localhost:8081/PASJava/ExposedComputation</detail>
,code=<code>null</code>}
at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:338)
at com.collaxa.cube.engine.ext.common.InvokeHandler.__invoke(InvokeHandler.java:1059)
at com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:586)
at com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:130)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BPELInvokeWMP.__executeStatements(BPELInvokeWMP.java:74)
at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:158)
at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2543)
at com.collaxa.cube.engine.CubeEngine._handleWorkItem(CubeEngine.java:1165)
at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1071)
at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:73)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:220)
at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:328)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4430)
at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4361)
at com.collaxa.cube.engine.CubeEngine._createAndInvoke(CubeEngine.java:698)
at com.collaxa.cube.engine.CubeEngine.createAndInvoke(CubeEngine.java:555)
at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:673)
at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:293)
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:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.jee.intercept.MethodInvocationInvocationContext.proceed(MethodInvocationInvocationContext.java:104)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor$1.run(JpsAbsInterceptor.java:94)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor.runJaasMode(JpsAbsInterceptor.java:81)
at oracle.security.jps.ee.ejb.JpsAbsInterceptor.intercept(JpsAbsInterceptor.java:112)
at oracle.security.jps.ee.ejb.JpsInterceptor.intercept(JpsInterceptor.java:105)
at sun.reflect.GeneratedMethodAccessor793.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.jee.intercept.JeeInterceptorInterceptor.invoke(JeeInterceptorInterceptor.java:69)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy274.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
at com.collaxa.cube.engine.ejb.impl.bpel.BPELDeliveryBean_5k948i_ICubeDeliveryLocalBeanImpl.handleInvoke(Unknown Source)
at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:35)
at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:140)
at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:88)
at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:64)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662) -
Error creating webservice from BRF+ application
Hi,
I am creating a webservice for the BRF+ application that I created.
I entered following parameters,
Development Package:
Local Package:
Transport Request:
Create Function Group:
Function Group:
Function Module:
Prefix for Generated Object:
Webservice Name:
Webservice Short Text:
Webservice Security Profile:
I get the following error message, which I am unable to find the reason for. Please help.
Save all the objects before generating the webservice
Alternatively I will appreciate if I can have the code that is generated as part of webservice. I think there is more code than I found below from the blogs.
TRY.
hand over some values into the context
lo_context = lo_function->get_process_context( ).
lo_context->set_value( iv_name = 'GROSS_SALARY' "#EC NOTEXT
ia_value = 25000 ).
process the function
lo_function->process( EXPORTING io_context = lo_context
IMPORTING eo_result = lo_result ).
get the result
lo_result->get_value( IMPORTING ea_value = lv_string ).
WRITE lv_string .
CATCH cx_fdt INTO lx_fdt.
error handling
LOOP AT lx_fdt->mt_message ASSIGNING <ls_message>.
WRITE / <ls_message>-text.
ENDLOOP.
ENDTRY.
lo_function->if_fdt_transaction~dequeue( iv_deep = abap_true ).
My goal is to create a function module that can use the BRF+ application rules to determine result based on input entered.
Regards,
Kartik N.Hi Kartik,
You will get the following error message, if you have done some changes and you have not saved before trying to generate the webservice.
Please save all the changes before trying to generate the webservice.
Also, if your goal is to just generate the function module, this can also be alternatively done, but not from the UI.
You can try the same by executing the method GENERATE_RFC of the class CL_FDT_WEB_SERVICE and pass the required inputs. The only differnece between both this method is that in the webservice method you also have to provide the webservice related attributes, whereas in the other method you do not have. This funcitonality has not yet been ex[posed on the UI.
Thanks and Regards
Nitesh -
Soap Error in webservice.
Can anyone tell me the meaning of this error?.
Iam trying to publish the webservice in uddi.. it gave me successfully published the tmodel..but when I went to the webservice navigator and gave my values, it gave me this error.
Thanks.
HTTP/1.1 500 Internal Server Error
connection: close
Set-Cookie: <value is hidden>
Set-Cookie: <value is hidden>
server: SAP J2EE Engine/7.00
content-type: text/xml; charset=utf-8
date: Tue, 06 May 2008 17:29:13 GMT
<?xml version='1.0'?>
<!-- see the documentation -->
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s='http://sap.com/xi/WebService/xi2.0'>
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text><![CDATA[
com.sap.aii.af.service.cpa.CPAException: invalid channel (party:service:channel) = <null>
at com.sap.aii.af.mp.soap.web.MessageServlet.getChannel(MessageServlet.java:499)
at com.sap.aii.af.mp.soap.web.MessageServlet.doPost(MessageServlet.java:409)
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:401)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
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:102)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
]]></text>
</s:SystemError>
</detail>
</SOAP:Fault>
</SOAP:Body>
</SOAP:Envelope>Hi,
Try this link and check
http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:BussinessService:ChannelName
Also use SoapUI 2.0.2 tool to test the WebServcie call.
Regards,
sangeetha
Edited by: Sangeetha on Jul 1, 2008 1:31 PM -
ALC-DSC-213-000 Error on WebService
I created a process/Web Serbice in Workbench that goes out to the edcprincipaluserentity in the repository and pulls back the 'uidstring' from the db table. I have created a DataConnection in Designer that talks back to the LC Server and it connects to the WSDL file. When I invoke the button from the DataConnection link, it does not pull any information back into the output fields.
While in workbench I can put in a test value and can see the results in the XML returned.
I have Disabled sercuirty in ADMINUI for this process and it still does not work.
Livecycle 8.1 is the version.
Below is the error from the server.log.
2009-01-15 13:32:34,990 ERROR [org.jboss.ejb.plugins.LogInterceptor] RuntimeException in method: public abstract java.lang.Object com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterLocal.doRequiresNe w(com.adobe.idp.dsc.transaction.TransactionDefinition,com.adobe.idp.dsc.transaction.Transa ctionCallback) throws com.adobe.idp.dsc.DSCException:
ALC-DSC-213-000: com.adobe.idp.dsc.DSCException: No Credential or Context set
at com.adobe.idp.dsc.interceptor.impl.AuthorizationInterceptor.intercept(AuthorizationInterc eptor.java:84)
at com.adobe.idp.dsc.interceptor.impl.RequestInterceptorChainImpl.proceed(RequestInterceptor ChainImpl.java:44)
at com.adobe.idp.dsc.engine.impl.ServiceEngineImpl.invoke(ServiceEngineImpl.java:113)
at com.adobe.idp.dsc.routing.Router.routeRequest(Router.java:102)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageReceiver.routeMessage(AbstractMessage Receiver.java:88)
at com.adobe.idp.dsc.provider.impl.vm.VMMessageDispatcher.doSend(VMMessageDispatcher.java:21 0)
at com.adobe.idp.dsc.provider.impl.base.AbstractMessageDispatcher.send(AbstractMessageDispat cher.java:57)
at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke(ServiceClient.java:208)
at com.adobe.workflow.engine.PEUtil.propogateFault(PEUtil.java:202)
at com.adobe.idp.workflow.dsc.invoker.WorkflowDSCInvoker$1.doInTransaction(WorkflowDSCInvoke r.java:285)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.execute(EjbTr ansactionCMTAdapterBean.java:336)
at com.adobe.idp.dsc.transaction.impl.ejb.adapter.EjbTransactionCMTAdapterBean.doRequiresNew (EjbTransactionCMTAdapterBean.java:282)
at sun.reflect.GeneratedMethodAccessor288.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:389)
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
at org.jboss.ejb.Container.invoke(Container.java:873)
at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
at $Proxy174.doRequiresNew(Unknown SPaul - in 8.1 there is no parameter for Run As, you only have Security Enable/Disable. Is there someplace else that this would have to be set. I went to Services > Archive Management > Endpoint Management
-
Error in Webservice Call HTTP error (return code 404, message conn failed)
Hi
We wish to call a standard EP7 webservice through ABAP.
When we try to create consumer proxy , we get the following error.
HTTP error (return code 404, message "conn failed")
Message no. SPRX090
==> Display Error Document
If you want to generate a proxy for an external WSDL document by specifying a URL, check that the proxy settings of the system are correct (transaction SICF - Client - Proxy Settings). If you want to generate a proxy for an XI Repository object, check the connection to the Enterprise Services Builder as follows:
Check List for Setting Up a Connection to the Service Repository
1. The address of the Enterprise Services Repository must be known in the SAP system
Check with report SPROX_CHECK_IFR_ADDRESS
The address is taken from the following parameters in the exchange profile ('Connections' section):
com.sap.aii.connect.repository.name: Server (for example,pwdf0436)
com.sap.aii.connect.repository.httpport: Port (for example, 1080)
com.sap.aii.connect.repository.contextroot: Root (for example,rep)
The logon data is also read from the exchange profile ('ApplicationSystem' section):
com.sap.aii.applicationsystem.serviceuser.name: User
com.sap.aii.applicationsystem.serviceuser.pwd: Password
As an alternative to using the exchange profile, you can maintain the RFC destination SAP_PROXY_ESR. If this RFC destination is maintained it will be used by the proxy generation in place of data from the exchange profile to access the Service Repository. In this case, the Exchange Profile will even not be read.
The RFC destination has to be set up using transaction SM59 and should look like this:
RFC Destination: SAP_PROXY_ESR
Connection Type: G (HTTP Connection to External Serv)
Description1: ESR for Proxy Generation
Target Host: esr_host
Service No: 1080
Path Prefix: rep
Logon and Security:
Basic Authentication: active
User: esr_user
Password: esr_password
2. The HTTP Framework of the Web Application Server must function
Check with report SPROX_CHECK_HTTP_COMMUNICATION
If necessary, contact your system administrator. Please be aware of the fact, that the HTTP framework is depending on the application server. Thus the result of the report may differ for different application servers.
3. Proxy generation must interpret the data of the Enterprise Services Repository correctly
Check with report SPROX_CHECK_IFR_RESPONSE
you can also login in dev and go to Xn se91
enter msg id SPRX and msg no 090
select the message and click on long text..
you get the same message in a formatted manner..
How to get rid of this ?
Regards
RajendraHi
we have given the correct path as we have tested the webserive from
other technology (.net) by providing the same path.
regards
Rajendra -
Error in 'WEBSERVICE TO RFC' SCENARIO
Hi experts,
i am facing a problem in 'WEB SERVICE-RFC' scenario,here we are using soap sender communication cheannel & rfc receiver communication channel.while processing the message from 'portal'(through web service in 'SXI_MONI' we are gettin 1 request & 2 response(error) message.
(in sxi_moni)
1st error message:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>Application</SAP:Category>
<SAP:Code area="RFC_ADAPTER">APPLICATION_ERROR</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="urn:sap-com:document:sap:rfc:functions">ZBAPI_QUOTATION.Exception</SAP:ApplicationFaultMessage>
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
[note: here we are using 'ZBAPI_QUOTATION' IN sap r/3)
2nd response:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Request Message Mapping
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
<SAP:P1>Object ID 08490A2EBE1A301E9D13373FF379B9BE Software Component 9776FD71CBAE11DF8942F5910A010C19</SAP:P1>
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText />
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Interface mapping Object ID 08490A2EBE1A301E9D13373FF379B9BE Software Component 9776FD71CBAE11DF8942F5910A010C19 does not exist in runtime cache</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
please help me to solve this issue.For the mapping error >>> Please check whether you have created a response mapping and properly referenced it in your operation mapping
For the RFC exception error >> Please check if you have any new fields added in RFC , re Import the RFC definition in PI
refresh the cache SXI_Cache
Please check below similar threads
file rfc file
RFC_ADAPTER "APPLICATION_ERROR"
Re: Webservice to RFC testing
Hope this helps
Regards
Ninad -
Hi,
I am calling many webservice from pl/sql ,but for one webservice call is sucessfull but in response getting exception
ORA-29273: HTTP request failed. ORA-06512: at "SYS.UTL_HTTP", line 1369. ORA-29263: HTTP protocol error. (ORA-06512: at "SYS.UTL_HTTP", line 1369
Dont know why it i sheppning tried to find the problem but cant find it,
7ZIf you see proxy structure created from wsdl then you can find exception class which may have "Detail" node.
Regards,
gourav -
Access Error Using Webservice In Weblogic 7
Hi,
I am getting the following error in Weblogic 7 sp1 when I call a client, which
invokes
a web service application (A). The application will then connect through the t3
protocol to call another application (B) returning some data.
<Dec 17, 2002 4:51:53 PM CST> <Notice> <WebLogicServer> <000365> <Server state
c
hanged to RUNNING>
<Dec 17, 2002 4:51:53 PM CST> <Notice> <WebLogicServer> <000360> <Server started
in RUNNING mode>
<Dec 17, 2002 5:29:41 PM CST> <Error> <JTA> <110201> <User [<anonymous>] is not
authorized to invoke startRollback on a transaction branch.>
weblogic.management.NoAccessRuntimeException: Access not allowed for subject:
pr
incipals=[], on ResourceType: ServerConfig Action: execute, Target: lookupServer
Runtime
at weblogic.management.internal.Helper$IsAccessAllowedPrivilegeAction.ru
n(Helper.java:2034)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:744)
at weblogic.management.internal.Helper.isAccessAllowed(Helper.java:1865)
at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBean
ServerImpl.java:923)
at weblogic.management.internal.RemoteMBeanServerImpl_WLSkel.invoke(Unkn
own Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:362)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:313)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
eManager.java:785)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:308)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:30)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
I have set the necessary user credentials when I create the Initial context
and I am able to get the remote reference of the Session Bean in
application B.
Hashtable ht = new Hashtable();
ht.put(Context.INITIAL_CONTEXT_FACTORY,"weblogic.jndi.WLInitialContextFactory");
ht.put(Context.PROVIDER_URL,SOME_URL);
ht.put(Context.SECURITY_PRINCIPAL,"system");
ht.put(Context.SECURITY_CREDENTIALS,"weblogic1234");
Hope someone could shed some light on this.
Thanks a lot.Hi,
I am getting a different error message now:
<Dec 18, 2002 6:00:43 PM CST> <Error> <EJB> <010026> <Exception during commit
of
transaction 3:ff0ca3f858e3d95b: javax.transaction.SystemException: Commit can
b
e issued only when there are no requests awaiting responses. Currently there is
one such request at weblogic.transaction.internal.TransactionImpl.abort(TransactionImpl.j
ava:989)
at weblogic.transaction.internal.TransactionImpl.enforceCheckedTransaction(TransactionImpl.java:1499)
at weblogic.transaction.internal.TransactionImpl.checkIfCommitPossible(TransactionImpl.java:1477)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:230)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:208)
at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:278)
at com.ejb.sb.SBAccountBean_6uugr6_EOImpl.getAccountDetails(SBAccountBean_6uugr6_EOImpl.java:212)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.webservice.component.slsb.SLSBInvocationHandler.invoke(SLSBInvocationHandler.java:84)
at weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.java:78)
at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)
at weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:539)
at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.java:264)
at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(ServletBase.java:362)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:269)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:346)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Commit can be issued only when there are
no requests awaiting responses. Currently there is one such request - with nested
exception:
[javax.transaction.SystemException: Commit can be issued only when there are no
requests awaiting responses. Currently there is one such request]
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1561)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:284)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:208)
at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:278)
at com.ejb.sb.SBAccountBean_6uugr6_EOImpl.getAccountDetails
(SBAccountBean_6uugr6_EOImpl.java:212)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.webservice.component.slsb.SLSBInvocationHandler.invoke(SLSBInvocationHandler.java:84)
at weblogic.webservice.core.handler.InvokeHandler.handleRequest(InvokeHandler.java:78)
at weblogic.webservice.core.HandlerChain.handleRequest(HandlerChain.java:131)
at weblogic.webservice.core.DefaultOperation.process(DefaultOperation.java:539)
at weblogic.webservice.core.DefaultWebService.invoke(DefaultWebService.java:264)
at weblogic.webservice.server.servlet.ServletBase.serverSideInvoke(ServletBase.java:362)
at weblogic.webservice.server.servlet.WebServiceServlet.serverSideInvoke(WebServiceServlet.java:269)
at weblogic.webservice.server.servlet.ServletBase.doPost(ServletBase.java:346)
at weblogic.webservice.server.servlet.WebServiceServlet.doPost(WebServiceServlet.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1058)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:401)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:306)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5412)
at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:744)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3086)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2544)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
> -
Error testing Webservice in XMLSPY
Hello guys,
I have a scenario Webservice -> XI -> Proxy Synchronous.
I have created the webservice, and the URL is correct. I have a problem in the proxy because is expecting the Message Type and in the XML appears the name of Message Interface.
I have the next XML in XI:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Call Adapter -->
<m:I_Consult xmlns:m="http:/xxxxxxx" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<FIELD1>String</FIELD1>
<FIELD2>String</FIELD2>
</m:I_Consult>
And the message I have in XMLSPY is a Parse Error. In XI monitoring I see the next error:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- Inbound Message -->
<SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIProxy</SAP:Category>
<SAP:Code area="ABAP">PARSE_APPLICATION_DATA</SAP:Code>
<SAP:P1>Request Message</SAP:P1>
<SAP:P2>CX_ST_MATCH_ELEMENT</SAP:P2>
<SAP:P3>/1SAI/TXS4C324AF6BDD9E4AD352A</SAP:P3>
<SAP:P4>XML Bytepos.: 304 XML Path: m:I_Consult(1) Error Text: Elemento MConsult previsto</SAP:P4>
<SAP:AdditionalText/>
<SAP:ApplicationFaultMessage namespace=""/>
<SAP:Stack>Error during XML => ABAP conversion (Request Message; error ID: CX_ST_MATCH_ELEMENT; (/1SAI/TXS4C324AF6BDD9E4AD352A XML Bytepos.: 304 XML Path: m:I_Consult(1) Error Text: Elemento MConsult previsto))
Elemento MConsult previsto
</SAP:Stack>
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
The text is in spanish, but I the problem is that R/3 is waiting MConsult (Message Type) despite of I_Consult (Message Interface).
In R/3 I am using the sentence INPUT-MConsult-FIELD1, so I understand that is waiting MConsult in the calling, but I don't understand why when I create the SOAP request in XMLSPY it doesn't appear.
I think all is created correctly in XI including SOAP adapter, and when I define the Webservice i put the message I_Consult with his namespace and I download the WSDL created.
When I test the WSDL in XMLSPY I have this error.
Do you know if I have to do some changes in the WSDL in XMLSPY before to send the SOAP request? I have no access to the WSNAVIGATOR so I can't do the test in this part.
Many thanks in advance.
Regards,
Xavi.Hello guys,
now is running, because I have created a message mapping.
But theoretically if the message from the webservice is the same that goes to the proxy it wouldn't be necessary to create the mapping isn't it?
I don't understand why if I create the mapping is running, and if I do without it is not running because the message send by SOAP is the same and the message types are identhical. Somebody can explain it?
Many thanks.
Regards,
Xavi. -
Error deploying webService in 7.0, 'jarName is NULL'
While trying to deploy a webservice in 7.0, I am getting the error:
Application is not configured properly {jarName is NULL}
I have used servicegen ant task to build my simple service consisting of two java
classes (no EJB). Changed only 1 line from the sample build.xml in the document,
viz. replace ejbjar attribute with javaClassComponents attribute. Deploying with
Administration Console application.
Thanks.
Pratip MukherjeeThanks. That solved the problem. Mostly. I had to make another change though. My
test case java class was extending another base java class. Looks like either
the ant build script or the Weblogic Web Services does not like that. I had to
remove that to make it to work.
"Neal Yin" <[email protected]> wrote:
Nothing wrong with your build.xml or servicegen. Please try to drop
your
ear to application directory. I would guess something is wrong with console
deployment.
-Neal
"Pratip Mukherjee" <[email protected]> wrote in message
news:[email protected]...
Looks like my build.xml did not make it to my previous post. Here itis as
an attachment.
"Pratip Mukherjee" <[email protected]> wrote:
My servicegen in build.xml seems to be very similar to yours. It is
as
below. I
am also enclosing the resulting ear file created by ant build.
<project name="Simple" default="build-ear">
<target name="build-ear">
<servicegen
destEar="SimpleService.ear"
warName="SimpleWAR.war" >
<service
javaClassComponents="WebServicesTest.Server.Simple.TestService"
targetNamespace="http://mroa590859:7010/myWAR/Simple"
serviceName="Simple"
serviceURI="/Simple"
generateTypes="True"
expandMethods="True" >
<client
packageName="WebServicesTest.Client.Simple"
clientJarName="SimpleClient.jar"
/>
</service>
</servicegen>
</target>
<target name="clean">
<delete>
<fileset dir="."
includes="SimpleService.ear" />
</delete>
</target>
</project>
"manoj cheenath" <[email protected]> wrote:
I need to see your build.xml file to really know what is
going wrong. Here is an example servicegen that works
with the java class component.
<servicegen
destEar="${APPLICATIONS}/${ear_file}"
warName="${war_file}">
<service
javaClassComponents="examples.webservices.basic.javaclass.HelloWorld"
targetNamespace="${namespace}"
serviceName="HelloWorld"
serviceURI="/HelloWorld"
generateTypes="True"
expandMethods="True">
<client
packageName="examples.webservices.basic.javaclass"
clientJarName="${client_jar_file}"
/>
</service>
<classpath>
<pathelement path="${build}"/>
<pathelement path="${java.class.path}"/>
</classpath>
</servicegen>
regards,
-manoj
"Pratip Mukherjee" <[email protected]> wrote in message
news:[email protected]...
While trying to deploy a webservice in 7.0, I am getting the error:
Application is not configured properly {jarName is NULL}
I have used servicegen ant task to build my simple service consistingof
two java
classes (no EJB). Changed only 1 line from the sample build.xml
in
the
document,
viz. replace ejbjar attribute with javaClassComponents attribute.Deploying with
Administration Console application.
Thanks.
Pratip Mukherjee -
Error with WebServices and object hierarchy
Hello,
I'm using Web Services (deployed on Axis Server) with SJC. SJC don't understood the object hierarchy. It's seem to be the same problem than in post http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=50290 and
http://forum.sun.com/jive/thread.jspa?forumID=123&threadID=52967.
I have 3 classes.
GrandSon
Son with an array of GrandSon
Father with an array of Son
The class :
Father :
package test;
public class Father {
private Son[] theSons;
public Father()
theSons = new Son[2];
theSons[0] = new Son();
theSons[1] = new Son();
public Son[] getSons()
return theSons;
Son :
package test;
public class Son {
private String name = "Son";
private GrandSon[] grandSons;
public Son()
grandSons = new GrandSon[2];
grandSons[0] = new GrandSon();
grandSons[1] = new GrandSon();
public String getName()
return name;
public GrandSon[] getGrandSons()
return grandSons;
GrandSon
package test;
public class GrandSon {
String name;
public String getName()
return "I'm a Grandson";
I'm creating the webService from Father JavaBean. Here is the WSDL file generated by wtp plugin for Eclipse :
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://test" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://test" xmlns:intf="http://test" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.3
Built on Oct 05, 2005 (05:23:37 EDT)-->
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://test" xmlns="http://www.w3.org/2001/XMLSchema">
<element name="getSons">
<complexType/>
</element>
<element name="getSonsResponse">
<complexType>
<sequence>
<element maxOccurs="unbounded" name="getSonsReturn" type="impl:Son"/>
</sequence>
</complexType>
</element>
<complexType name="GrandSon">
<sequence>
<element name="name" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
<complexType name="ArrayOfGrandSon">
<sequence>
<element maxOccurs="unbounded" minOccurs="0" name="item" type="impl:GrandSon"/>
</sequence>
</complexType>
<complexType name="Son">
<sequence>
<element name="grandSons" nillable="true" type="impl:ArrayOfGrandSon"/>
<element name="name" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</schema>
</wsdl:types>
<wsdl:message name="getSonsRequest">
<wsdl:part element="impl:getSons" name="parameters"/>
</wsdl:message>
<wsdl:message name="getSonsResponse">
<wsdl:part element="impl:getSonsResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="Father">
<wsdl:operation name="getSons">
<wsdl:input message="impl:getSonsRequest" name="getSonsRequest"/>
<wsdl:output message="impl:getSonsResponse" name="getSonsResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="FatherSoapBinding" type="impl:Father">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getSons">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getSonsRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getSonsResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="FatherService">
<wsdl:port binding="impl:FatherSoapBinding" name="Father">
<wsdlsoap:address location="http://localhost:8080/webServiceSimple/services/Father"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
When I try to call my Web Service in Sun Java Creator, I have this error message :
InvocationTargetException com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:459)
com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
deserialization error: unexpected XML reader state. expected: END but found: START
Runtime exception; nested exception is: deserialization error: unexpected XML reader state. expected: END but found: START: {http://test}grandSons
com.sun.xml.rpc.client.StreamingSender._handleRuntimeExceptionInSend(StreamingSender.java:318)
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:300)
webservice.Father_Stub.getSons(Father_Stub.java:68)
webservice.fatherservice.FatherServiceClient.getSons(FatherServiceClient.java:29)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)
com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
deserialization error: unexpected XML reader state. expected: END but found: START: {http://test}grandSons
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:128) webservice.Son_LiteralSerializer.doDeserialize(Son_LiteralSerializer.java:54)
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:216)
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:124)
webservice.GetSonsResponse_LiteralSerializer.doDeserialize(GetSonsResponse_LiteralSerializer.java:53)
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.internalDeserialize(LiteralObjectSerializerBase.java:216)
com.sun.xml.rpc.encoding.literal.LiteralObjectSerializerBase.deserialize(LiteralObjectSerializerBase.java:124)
webservice.Father_Stub._deserialize_getSons(Father_Stub.java:115)
webservice.Father_Stub._readFirstBodyElement(Father_Stub.java:102)
com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:215)
webservice.Father_Stub.getSons(Father_Stub.java:68)
webservice.fatherservice.FatherServiceClient.getSons(FatherServiceClient.java:29)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585)
com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450)
com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031)
java.lang.Thread.run(Thread.java:595)
The SOAP communication seems to be correct. I'm sniffing the communication channel:
Request from SJC:
POST /webServiceSimple/services/Father HTTP/1.1
Content-Type: text/xml; charset=utf-8
Content-Length: 335
SOAPAction: ""
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.5.0_06
Host: 127.0.0.1:8081
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
<?xml version="1.0" encoding="UTF-8"?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns0="http://test"><env:Body><ns0:getSons/></env:Body></env:Envelope>
Response from AXIS ( I have corrected text indentation) :
HTTP/1.1 200 OK
Content-Type: text/xml;charset=utf-8
Transfer-Encoding: chunked
Date: Thu, 24 Aug 2006 12:44:27 GMT
Server: Apache-Coyote/1.1
292
<?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body><getSonsResponse xmlns="http://test">
<getSonsReturn>
<grandSons>
<grandSons>
<name>I'm a Grandson</name>
</grandSons>
<grandSons>
<name>I'm a Grandson</name>
</grandSons>
</grandSons>
<name>Fils</name>
</getSonsReturn>
<getSonsReturn>
<grandSons>
<grandSons>
<name>I'm a Grandson</name>
</grandSons>
<grandSons>
<name>I'm a Grandson</name>
</grandSons>
</grandSons>
<name>Fils</name>
</getSonsReturn>
</getSonsResponse>
</soapenv:Body></soapenv:Envelope>
0
I suppose that the version of SOAP used in AXIS and in SJSC may be different. Array's definition have been changed in version SOAP 1.2.
Here an array is described like this :
<grandSons> <- ARRAY
<grandSons> <-OBJECT : ARRAY[0]
</grandSons>
<grandSons><-OBJECT : ARRAY[1]
</grandSons>
</grandSons>
Probably explains this message :
deserialization error: unexpected XML reader state. expected: END but found: START: item
Somebody have an idea ?
Thanks.Hi Frank,
I've checked further, and for testing, I have made a change to the sample Reference Cursor package code (NVL'd the parameter), but I still get the same error:
CREATE OR REPLACE PACKAGE BODY RefCursorExample IS
FUNCTION get_requests_for_tech(p_email VARCHAR2) RETURN ref_cursor IS
the_cursor ref_cursor;
BEGIN
OPEN the_cursor FOR
SELECT sr.svr_id, sr.status, sr.problem_description
FROM service_requests sr, users u
WHERE sr.assigned_to = u.user_id
AND u.email = NVL(p_email,u.email);
RETURN the_cursor;
END get_requests_for_tech;
FUNCTION count_requests_for_tech(p_email VARCHAR2) RETURN NUMBER IS
the_count NUMBER;
BEGIN
SELECT COUNT(*)
INTO the_count
FROM service_requests sr, users u
WHERE sr.assigned_to = u.user_id
AND u.email = NVL(p_email,u.email);
RETURN the_count;
END count_requests_for_tech;
END RefCursorExample;My issue is that it works with NULL for the parameter in the Business Component Browser (BCB), but when I get to the JSF ExecuteWithParams the application looks like it expects NOT NULL when NULL should work. Is there a way to trace where this is happening? Since the BCB works, can I assume it is the JSF side that is causing this? I have already turned on my logging to FINE in logging.properties, and I can't seem to find why this is being triggered...
java.util.logging.ConsoleHandler.level = FINE
com.sun.faces.level=FINE
Thanks!
Kenton
Maybe you are looking for
-
Hi experts i did a print prg for sending the pdf attachment by smartforms. but it's getting dumpped,this is my code plz help me,its urgent. i checked even SDN Forums also.i made some changes, even though i don't get the output. it shows not matching
-
When new record instance not firing on Purchase Order form
I query a purchase order and click on the shipment lines button. There are 2 shipment lines in this example. I am using CUSTOM.pll to inject some specific code to restrict the cancel functionality. One line I want to restrict the cancel functionality
-
Cannot get GarageBand off waiting process for ios 8.
I've tried restarting my phone, deleting and re-downloading, and also connecting to iTunes using my laptop and downloading there. it downloaded to iTunes on the PC, but not on my phone. I need to get this on my phone ASAP. I have music that I've been
-
Hi, I'm sure that I have a stupid problem, but it is a problem for me. I imported photos from 2 different cameras in one folder and try to sort them by the exposure date. Now I have in the first part all images from camera one (format DNG) and behind
-
How can I email directly from Bridge? I have CS6