Plz help Error in encoding Soap Message
hii,
im new to web services ,im doing a test application using netbeans 5.5 which retrieves some information from database.Its working fine if i return eother a string or a list of strings from webservice method.
But if im using a user defined datatype as return value its giving follwing error
SEVERE: Error in encoding SOAP Message
Error in encoding SOAP Message
at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:113)
at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:97)
at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:27)
at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:24)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:675)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:444)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:374)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.callHandlersOnResponse(SOAPMessageDispatcher.java:448)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.getResponse(SOAPMessageDispatcher.java:307)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:601)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:141)
at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(WSServletDelegate.java:333)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:288)
at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:88)
at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeJAXBBridgeInfo(SOAPEncoder.java:252)
at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeBody(SOAPEncoder.java:569)
at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:95)
... 33 more
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:246)
at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:64)
at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:86)
at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:86)
... 36 more
Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:219)
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:234)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:562)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:293)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:594)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
... 39 more
Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:474)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:557)
... 45 more
Can any body help me im struck here for the last 2 days
thnx
RAJESH
Are u sure that u correctly configure Apex (marvel.conf)?
Have u include this file in httpd.conf?
Similar Messages
-
Error in encoding SOAP Message
hii,
im new to web services ,im doing a test application using netbeans 5.5 which retrieves some information from database.Its working fine if i return eother a string or a list of strings from webservice method.
But if im using a user defined datatype as return value its giving follwing error
SEVERE: Error in encoding SOAP Message
Error in encoding SOAP Message
at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:113)
at com.sun.xml.ws.handler.SOAPMessageContextImpl.getMessage(SOAPMessageContextImpl.java:97)
at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:27)
at org.handler.PropertyMessageHandler.handleMessage(PropertyMessageHandler.java:24)
at com.sun.xml.ws.handler.HandlerChainCaller.callProtocolHandlers(HandlerChainCaller.java:675)
at com.sun.xml.ws.handler.HandlerChainCaller.internalCallHandlers(HandlerChainCaller.java:444)
at com.sun.xml.ws.handler.HandlerChainCaller.callHandlers(HandlerChainCaller.java:374)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.callHandlersOnResponse(SOAPMessageDispatcher.java:448)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.getResponse(SOAPMessageDispatcher.java:307)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:601)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:141)
at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.handle(WSServletDelegate.java:333)
at com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:288)
at com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:77)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:88)
at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeJAXBBridgeInfo(SOAPEncoder.java:252)
at com.sun.xml.ws.encoding.soap.SOAPEncoder.writeBody(SOAPEncoder.java:569)
at com.sun.xml.ws.encoding.soap.server.SOAPXMLEncoder.toSOAPMessage(SOAPXMLEncoder.java:95)
... 33 more
Caused by: javax.xml.bind.MarshalException
- with linked exception:
[javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context]
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:246)
at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:64)
at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:86)
at com.sun.xml.ws.encoding.jaxb.JAXBBridgeInfo.serialize(JAXBBridgeInfo.java:86)
... 36 more
Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:219)
at com.sun.xml.bind.v2.runtime.XMLSerializer.reportError(XMLSerializer.java:234)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:562)
at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:29)
at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:132)
at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:101)
at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:293)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:594)
at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:241)
... 39 more
Caused by: javax.xml.bind.JAXBException: org.bean.PropertyBean nor any of its super class is known to this context
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getBeanInfo(JAXBContextImpl.java:474)
at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:557)
... 45 more
Can any body help me im struck here for the last 2 days
thnx
RAJESHHello again,
because it seems to be a JavaScript issue, I opend this discussion in that forum: http://forums.adobe.com/message/6205851#6205851 -
Error in decoding SOAP Message :_(
Anybody has never got these exceptions:
"Error in decoding SOAP Message",
and
"Cannot find the dispatch method"
I'm handling outbound soap message and inbound soap message either
on server side and client side.
On server side I obtain following exception: (you can see also my personal debbugger :-P)
---Server Inbound SOAP message---|#]
Decrypting message and rebuilding Valuees... |#]
Inizio decodifica|#]
. decodifica terminata!
--found following string: <ns1:addiziona><num1>80</num1><num2>22222</num2></ns1:addiziona>|#]
...MESSAGE Restored.|#]
<?xml version="1.0" ?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:ns1="http://calculator.me.org/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soapenv:Body>
<ns1:addiziona>
<num1>80</num1><num2>22222</num2>
</ns1:addiziona></soapenv:Body>
</soapenv:Envelope>|#]
Error in decoding SOAP Message
Error in decoding SOAP Message
at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:89)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.toMessageInfo(SOAPMessageDispatcher.java:187)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher$SoapInvoker.invoke(SOAPMessageDispatcher.java:571)
at com.sun.xml.ws.protocol.soap.server.SOAPMessageDispatcher.receive(SOAPMessageDispatcher.java:145)
at com.sun.xml.ws.server.Tie.handle(Tie.java:88)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.handlePost(Ejb3MessageDispatcher.java:160)
at com.sun.enterprise.webservice.Ejb3MessageDispatcher.invoke(Ejb3MessageDispatcher.java:89)
at com.sun.enterprise.webservice.EjbWebServiceServlet.dispatchToEjbEndpoint(EjbWebServiceServlet.java:178)
at com.sun.enterprise.webservice.EjbWebServiceServlet.service(EjbWebServiceServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at com.sun.enterprise.web.AdHocContextValve.invoke(AdHocContextValve.java:100)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:71)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Caused by: javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method
at com.sun.xml.ws.encoding.soap.SOAPDecoder.raiseFault(SOAPDecoder.java:674)
at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.decodeDispatchMethod(SOAPXMLDecoder.java:152)
at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBodyContent(SOAPDecoder.java:337)
at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeBody(SOAPDecoder.java:327)
at com.sun.xml.ws.encoding.soap.SOAPDecoder.decodeEnvelope(SOAPDecoder.java:250)
at com.sun.xml.ws.encoding.soap.server.SOAPXMLDecoder.toInternalMessage(SOAPXMLDecoder.java:81)
... 29 more
|#]
--->handleFault O_o<---|#]Shad
P.s. AS 9
Pps Heeeeeeeeeeeeeelp! :_|Is the package of this class file org.me.calculator
?Yes, package is org.me.calculator .
>
I am asking these questions because : the error
"cannot find dispatch method" can happen is there is
a mismatch in the targetNameSpace. Ok, I understand. But I believe that I insert some horror within code :-)
Or, if you do not
mind sharing your application, please use the
GlassFish user alias ([email protected] -
you may have to subscribe to project glassfish (
https://glassfish.dev.java.net) mails) and mail us
the app - we will debug it for youOh, I can sharing my application. It must be a sample for understanding Sun's environment, web services world and see handling/security messages. But my simple sample become too great for me :-P
Really, this is my experiment:
--server: a simple ws with "add" service.
--client: a session bean that would use ws.
This step works. Next step:
--Client create a SOAP request, sign it, encrypt it and send.
--Server check signature, decrypt soap element, add two number and
send a clear response.
In this step I obtain: error in decode...etc etc
Client seems works (create, sign, encrypt e send).
I'm trying to works at programming level (with handlers).
I don't want to use application level security for two reasons:
1. If I use it, I don't learn in depth WS-Security and other..
2. I tried to use it, but it did works only on server side, as a matter of fact, client doesn't manage signing and encrypting soap message (sure, I tried with other example, perhaps totally wrong :-P)
>
Please let us know what works for youI come from JBOSS(WS) and JbossIDE (Eclipse with jboss plug-in). I think NetBeans and SUN AS are ahead of jboss.
If you want see a bad example of design, coding and all regarding java, you can see my sample-project :-P
Web services:
http://slide.altervista.org/SUN/CalculatorWSApplication-webservices.rar
Client:
http://slide.altervista.org/SUN/CalculatorWSBeanClient.rar
(Client is really rough... :_) )
Thank you for watching my problem and I apologize about my English.
Simone -
Hi All,
I am using project server 2007 and WSS 3.0.
I have been facing a strange issue for couple of days. I am unable to open PWA in browser and MS Project Pro on application server.
Everything is correct whether it is URL or MS Project profile account on MSP. This is strange because i can open same PWA/MSP from other computers (Database server / Client PCs) but not locally on server.
When i try to connect to MSP on App server, i get the following errors in event viewer.
Event Type: Error
Event Source: MSSOAP
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: Connection time out..
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: An unanticipated error occurred during the processing of this request..
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description: Soap error: Sending the Soap message failed or no recognizable response was received.
Event Type: Error
Event Source: MSSOAP
Event Category: Client
Event ID: 16
User: N/A
Computer: APP-Server-Name
Description:
Soap error: Unspecified client error..
One more issue i am facing and i guess that is related to above issue. The Issue is, when i am creating a new project, It's workspace gets created but doesn't get linked to the project and i can't link it manually because it already exists for the project.
sandeepHi Paul ,
Thanks for reply. The project server URL was already added to the Trusted
Sites/Local Intranet areas in IE.
sandeep -
Error while posting SOAP message
I am trying to post a SOAP message but I keep getting this error. Can anybody help me on this. I tried using ALTOVA spy and SOAP Ui but the result is the same error.
<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.CPAObjectNotFoundException: Couldn't retrieve binding for the given channelId: Binding:CID=null;
* at com.sap.aii.af.service.cpa.impl.lookup.AbstractLookupManager.getBindingByChannelId*(AbstractLookupManager.java:173)
at com.sap.aii.adapter.soap.web.MessageServlet.doPost(MessageServlet.java:431)
Scenario is SOAP Sender and IDOC reciever.I tried reconfiguring also.
When I test from Integration Engine in RWB using the test message it is sucsseful. Infact I can see the IDOC too.
But when the basis guy tested with Adapter engine in RWB using the test tool, it gives the following error:
Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=BusComp_Siebel1;TS=;AN=SI_Sales_Order_OB_Async;ANS=http://trm.com:o2b:SalesOrderCreate; in the current context [Unknown].
Any idea where is the problem.
When we tried the WSN step we are facing this error in the very first step.
WSDL1.1, WSDL 2.0 definition element expected. Found [html: null] .
Edited by: Chandra Gunapati on Oct 7, 2009 10:00 PM -
Error when parsing SOAP message from JSP
i write a class to call SOAP message from a servlet on jdev 1013
when i run the class alone it works fine
soapMessage = this.buildSOAPMessagee();
ByteArrayOutputStream output = new ByteArrayOutputStream();
soapMessage.writeTo(output);
SOAPConnectionFactory connf = SOAPConnectionFactory.newInstance();
SOAPConnection conn = connf.createConnection();
SOAPMessage smsg= conn.callsoapMessage, "http://190.0.0.16:8988/mmsc/httpReceiver");
smsg.writeTo(out);
but when running same class same method from jsp page...i have Exception
javax.xml.soap.SOAPException: Unable to get header stream in saveChanges at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:576) at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:622) at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:686) at oracle.j2ee.ws.saaj.soap.MessageImpl.writeTo(MessageImpl.java:702) at test.test2.ret(test2.java:341) at untitled1.jspService(_untitled1.java:45) [untitled1.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230) at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)Caused by: java.io.IOException: SOAP exception while trying to externalize: Error parsing envelope: (1, 1) Start of root element expected. at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:220) at oracle.j2ee.ws.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:522) at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:574) ... 23 moreCaused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected. at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104) at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76) at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:215) ... 25 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected. at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201) at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78) ... 27 more
dose anybody can help why that happend when running the code from JSPi write a class to call SOAP message from a servlet on jdev 1013
when i run the class alone it works fine
soapMessage = this.buildSOAPMessagee();
ByteArrayOutputStream output = new ByteArrayOutputStream();
soapMessage.writeTo(output);
SOAPConnectionFactory connf = SOAPConnectionFactory.newInstance();
SOAPConnection conn = connf.createConnection();
SOAPMessage smsg= conn.callsoapMessage, "http://190.0.0.16:8988/mmsc/httpReceiver");
smsg.writeTo(out);
but when running same class same method from jsp page...i have Exception
javax.xml.soap.SOAPException: Unable to get header stream in saveChanges at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:576) at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:622) at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChanges(MessageImpl.java:686) at oracle.j2ee.ws.saaj.soap.MessageImpl.writeTo(MessageImpl.java:702) at test.test2.ret(test2.java:341) at untitled1.jspService(_untitled1.java:45) [untitled1.jsp] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260) at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230) at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33) at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298) at java.lang.Thread.run(Thread.java:595)Caused by: java.io.IOException: SOAP exception while trying to externalize: Error parsing envelope: (1, 1) Start of root element expected. at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:220) at oracle.j2ee.ws.saaj.soap.MessageImpl.getHeaderBytes(MessageImpl.java:522) at oracle.j2ee.ws.saaj.soap.MessageImpl.saveChangesMimeEncoded(MessageImpl.java:574) ... 23 moreCaused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected. at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104) at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76) at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getContentAsStream(SOAPPartImpl.java:215) ... 25 moreCaused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected. at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320) at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333) at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295) at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201) at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78) ... 27 more
dose anybody can help why that happend when running the code from JSP -
Plz help error while starting j2ee server
I 'm working on Win xp professional operating system.
While starting the j2ee server from command line
with the command
j2ee -verbose
earlier it was working perfectly but from 2 days its not starting even...even i have reinstalled the j2ee software ....i think there is some internal problem which is not related to setting up the enviornment variables and incorrectly typing of command... plz help me as soon as possible.. i wil be thankful ....
I am getting error message as follows
C:\Documents and Settings\Sunita Khilnaney>j2ee
java.io.IOException: The system cannot find the path specified
at java.io.Win32FileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:690)
at com.sun.enterprise.repository.ConfigurationImpl.getServerRepository(C
onfigurationImpl.java:92)
at com.sun.enterprise.repository.ConfigurationImpl.<init>(ConfigurationI
mpl.java:45)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:170)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
J2EE server listen port: 1050
java.io.FileNotFoundException: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\system.out (T
he system cannot find the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:100)
at com.sun.enterprise.server.J2EEServer.redirectStreams(J2EEServer.java:
534)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:209)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.io.FileNotFoundException: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\system.out (T
he system cannot find the path specified)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:100)
at com.sun.enterprise.server.J2EEServer.redirectStreams(J2EEServer.java:
534)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:209)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.lang.RuntimeException: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\system.out (The
system cannot find the path specified)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:350)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
J2EE server reported the following error: C:\j2sdkee1.3\logs\compaq\j2ee\j2ee\sy
stem.out (The system cannot find the path specified)
Error executing J2EE server ...
C:\Documents and Settings\Sunita Khilnaney>Hello sunita,
do one thing put yoor j2ee server installation in a folder whose name doesn't contain space.
As you can see there ia a space btwn Documents & and. btwn Sunita & Khilnaney
C:\Documents and Settings\Sunita Khilnaney>j2ee
put it in folder like c:\SunitaKhilnaney>j2ee or c:\Sunita_Khilnaney>j2ee
I hope it'll solve your pblm.
Thanks,
Dinesh -
Help needed on Creating SOAP message
hi all
i am trying to use the saaj from JWDP1.4 to manually create a soap message and send it to a .net webservice. when i run it, i keep getting error complaining the http header :
com.sun.xml.messaging.saaj.SOAPExceptionImpl: Invalid Content-Type:text/html.here is the code, notice the part i use the message to add header information, but it didn't get added for some reason. any help would be much appreciated.
import javax.xml.soap.SOAPConnectionFactory;
import javax.xml.soap.SOAPConnection;
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPElement;
import java.io.FileInputStream;
import javax.xml.transform.stream.StreamSource;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.Transformer;
import javax.xml.transform.Source;
import javax.xml.transform.stream.StreamResult;
import java.net.URL;
public class JWTest {
public static void main(String args[]) {
try {
//First create the connection
SOAPConnectionFactory soapConnFactory =
SOAPConnectionFactory.newInstance();
SOAPConnection connection =
soapConnFactory.createConnection();
//Next, create the actual message
MessageFactory messageFactory = MessageFactory.newInstance();
SOAPMessage message = messageFactory.createMessage();
// Add the HTTP headers.
message.getMimeHeaders().addHeader("User-Agent", "Mozilla/4.0 [en] (WinNT; I)");
message.getMimeHeaders().addHeader("Host", "m25385");
message.getMimeHeaders().addHeader("Content-type", "text/xml");
message.getMimeHeaders().addHeader("SOAPAction", "TELUS.Geomatics.WebServices.AdslAvailability.GetAdslAvailability/GetAvailability");
message.setProperty(SOAPMessage.CHARACTER_SET_ENCODING, "utf-8");
//Create objects for the message parts
SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
envelope.addNamespaceDeclaration("xsd", "http://www.w3.org/2001/XMLSchema");
envelope.addNamespaceDeclaration("xsi", "http://www.w3.org/2001/XMLSchema-instance");
SOAPBody body = message.getSOAPBody();
//Populate the body
//Create the main element and namespace
SOAPElement bodyElement =
body.addChildElement(envelope.createName("GetAvailability" ,
"TELUS.Geomatics.WebServices.AdslAvailability.GetAdslAvailability"));
//Add content
bodyElement.addChildElement("postalCode").addTextNode("T6J2S4");
bodyElement.addChildElement("phoneNumber").addTextNode("7057211380");
bodyElement.addChildElement("callingSystem").addTextNode("MyTelus");
//Save the message
//message.saveChanges();
//Check the input
System.out.println("\nREQUEST:\n");
message.writeTo(System.out);
System.out.println();
//Send the message and get a reply
/*Set the destination
String destination =
"http://m25385/GeoExplorer/webservices/ADSLAvailability/GetADSLAvailability.asmx";
URL endpoint = new URL("http://m25385/GeoExplorer/webservices/ADSLAvailability/GetADSLAvailability.asmx");
//Send the message
SOAPMessage reply = connection.call(message, endpoint);
//Check the output
System.out.println("\nRESPONSE:\n");
//Create the transformer
TransformerFactory transformerFactory =
TransformerFactory.newInstance();
Transformer transformer =
transformerFactory.newTransformer();
//Extract the content of the reply
Source sourceContent = reply.getSOAPPart().getContent();
//Set the output for the transformation
StreamResult result = new StreamResult(System.out);
transformer.transform(sourceContent, result);
System.out.println();
//Close the connection
connection.close();
} catch(Exception e) {
System.out.println(e.getMessage());
}Can this be done in actionPerformed method If you want the user to have to hit enter after every character they type, yes. Most auto-complete implementations don't, and they'll hate you for it.
Can anyone be more specific What is your specific problem? have you already implemented your combo-box model that will prune the available selections, or not? If not, start there.
Also if is enter S in textfield wont the focus in the
Dropdown be on the first choice starting with S ?Not if the combo is editable and the drop down is not showing.
is it possible with JComboBox or someother Swing componentYes. Follow the steps in the previous post.
Pete -
PLZ HELP: Error is Cannot load the driver
I dont know where i am going wrong : Just i am getting the blank page
i am posting my code :
--------------------LoginServlet4.java
package com.xyz;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
public class LoginServlet4 extends HttpServlet
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
try{
User4 user=new User4();
UserServices4 userServices4= new UserServices4();
ArrayList userList = (ArrayList)userServices4.listUser4();
req.setAttribute("userList",userList);
RequestDispatcher rd = req.getRequestDispatcher("form5.jsp");
rd.forward(req,res);
}//try
catch(Exception e)
System.out.println(e);
}//catch
}//doGet
}---------------------UserServices4.java
a bussiness logic class where i am opening the connection and retrieving the data
package com.xyz;
import java.io.*;
import java.io.Serializable;
import java.util.*;
import java.sql.*;
public class UserServices4
public UserServices4(){}
Connection con=null;
PreparedStatement ps=null;
ResultSet rs=null;
public List listUser4(){
ArrayList userList = new ArrayList();
User4 user=null;
String s1,s2,s3,s4;
try
Class.forName("com.jdbc.mysql.Driver");
con=DriverManager.getConnection("jdbc:mysql://165.138.99.765/Bidding","mysql","mmmmm");
ps=con.prepareStatement("select * from Match_Set");
rs=ps.executeQuery();
while(rs.next())
s1=rs.getString(1);
s2=rs.getString(2);
s3=rs.getString(3);
s4=rs.getString(4);
user = new User4();
user.setT1(s1);
user.setT2(s2);
user.setO1(s3);
user.setO1(s4);
userList.add(user);
}//try
catch(Exception e)
System.out.println(e);
finally{
try{
con.close();
catch(Exception e)
}//finally
return userList;
}/userList
}//userservices4--------------------------User4.java ( A bean Class )
package com.xyz;
import java.io.*;
import java.util.*;
public class User4
public User4(){}
public void setT1(String s)
T1=s;
public String getT1()
return T1;
public void setT2(String s)
T2=s;
public String getT2()
return T2;
public void setO1(String s)
O1=s;
public String getO1()
return O1;
public void setO2(String s)
O2=s;
public String getO2()
return O2;
private String T1,T2;
private String O1,O2;
}-----------------------------form5.jsp
<%@ page import= "java.io.* "%>
<%@ page import= "java.sql.*" %>
<%@ page import= "java.util.*" %>
<%@ page import= "javax.servlet.http.*" %>
<%
ArrayList userList = (ArrayList)request.getAttribute("userList");
out.println(userList);
%>=============================
PLZ HELP MEthanks for pointing the error i had made,
But this output i got..
[com.pennywise.User4@c0a9f9, com.pennywise.User4@d72200, com.pennywise.User4@1f9338f, com.pennywise.User4@1a80aea, com.pennywise.User4@164b9b6, com.pennywise.User4@1dc64a5, com.pennywise.User4@53c3f5, com.pennywise.User4@166340c, com.pennywise.User4@e33e18, com.pennywise.User4@101ac93, com.pennywise.User4@e90943, com.pennywise.User4@15f1f9c, com.pennywise.User4@1474ea, com.pennywise.User4@107bd0d, com.pennywise.User4@10ca208, com.pennywise.User4@61f533] -
Encoding soap messages..please help!!
I am looking an encoding for transfering data with soap. The encoding should support latin1.
Please post any idea.
AndyHi There
I had messages on my phone which disappeared when i did a back up (this has never happened before). I had not made any changes, just carried out a back-up.
When I realised my messages and emails has disappeared, I then tried to restore to see if I could get them back
regards
Manesh -
Error while sending SOAP message to PI
Hi Guyz,
I have a sync-asyn scneario SOAP to File via PI. When I test the scenario using test tool i.e SOAP UI , scenario runs fine. But when user is trying to send a message they are getting Error message as response . "No SOAP Envelope but 1 {}.
Any idea what is this error. I tried to test the scenario with the same XML message that they are using.
Regards,
Loveena.Hi Loveena,
What kind of application tries to connect with PI?
Have you tried to mark Use No SOAP Envelope (Point 4. https://help.sap.com/saphelp_nw73/helpdata/en/48/3555240bea31c3e10000000a42189d/frameset.htm)?, in this way you can check that the message at least comes to PI.
Regards. -
Hi,
We have Proxy to SOAP Sync. scenario. This was working fine before the SOAP Receiver service that we were accessing change the port from 8080 to 9080.
Now the below error is coming com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.net.ConnectException: Connection refused
I am able to open the WSDL with adding ?wsdl at the end of URL. Also i ave taken the endpoint from the WSDL ( after opening in Browser)
Not sure what are the setting needs to be done to make this work. Is this Firewall issue & how to solve this
Regards
Edited by: harry101_SAP on Dec 5, 2011 11:40 PMHi,
This java exception is thrown only when there is no service listening to the port you are attempting to connect to.
This appesrs to be a firewall issue.You need to open the port in SOAP receiver server with help of Network team.
One way to verify the port problem is that you try doing "telnet server IP address portnumber" and check the output.
Regards
Anupam
Edited by: anupamsap on Dec 6, 2011 7:41 AM -
Plz Help : Error in installing Apex
Hi all,
I have Oracle Apps 11.5.9 installed on my machine and linked it with Apex 2.2.1 version.
But when i tried to open it using IE i am getting this error:
Forbidden
You don't have permission to access /pls/apex/apex on this server
Oracle HTTP Server Powered by Apache/1.3.19 Server at home.oralabs1.com Port 8000
Can any one help me in configuring the settings.I have also seen the log file and found the installation successful message.
Regards,
Chandu.Are u sure that u correctly configure Apex (marvel.conf)?
Have u include this file in httpd.conf? -
[plz Help]: error while executing ant build-war
Hi,
while running the example of JAX-RPC provided by JWSDP 2.0 i am getting the following error
so please do help me on this..........
i am using JWSDP 2.0 and apache-tomcat-5.5.20
C:\Sun\jwsdp-2.0\jaxrpc\samples\HelloWorld>ant build-war
Buildfile: build.xml
init:
[echo] -------- HelloWorld Sample --------
prepare:
[mkdir] Created dir: C:\Sun\jwsdp-2.0\jaxrpc\build\samples\HelloWorld\classe
s\server
generate-server:
edit-config:
unedit-config:
compile-server:
[javac] Compiling 1 source file to C:\Sun\jwsdp-2.0\jaxrpc\build\samples\Hel
loWorld\classes\server
create-war:
[war] Building war: C:\Sun\jwsdp-2.0\jaxrpc\build\samples\HelloWorld\jaxrp
c-HelloWorld-raw.war
[delete] Deleting directory C:\Sun\jwsdp-2.0\jaxrpc\build\samples\HelloWorld\
classes\server
build-war:
[echo] -------- HelloWorld --------
[wsdeploy] command line: -keep -o C:\Sun\jwsdp-2.0\jaxrpc\build\samples\HelloWo
rld\jaxrpc-HelloWorld.war -verbose C:\Sun\jwsdp-2.0\jaxrpc\build\samples\HelloWo
rld\jaxrpc-HelloWorld-raw.war -classpath C:\Sun\jwsdp-2.0\jwsdp-shared\lib\mail.
jar;C:\Sun\jwsdp-2.0\jwsdp-shared\lib\activation.jar;C:\Sun\jwsdp-2.0\jaxp\lib\j
axp-api.jar;C:\Sun\jwsdp-2.0\jaxp\lib\endorsed\dom.jar;C:\Sun\jwsdp-2.0\jaxp\lib
\endorsed\sax.jar;C:\Sun\jwsdp-2.0\jaxp\lib\endorsed\xalan.jar;C:\Sun\jwsdp-2.0\
jaxp\lib\endorsed\xercesImpl.jar;C:\Sun\jwsdp-2.0\jaxrpc\lib\jaxrpc-api.jar;C:\S
un\jwsdp-2.0\jaxrpc\lib\jaxrpc-spi.jar;C:\Sun\jwsdp-2.0\jaxrpc\lib\jaxrpc-impl.j
ar;C:\Sun\jwsdp-2.0\saaj\lib\saaj-api.jar;C:\Sun\jwsdp-2.0\saaj\lib\saaj-impl.ja
r;C:\Sun\jwsdp-2.0\jwsdp-shared\lib\relaxngDatatype.jar;C:\Sun\jwsdp-2.0\jwsdp-s
hared\lib\xsdlib.jar;C:\Sun\jwsdp-2.0\jwsdp-shared\lib\jax-qname.jar;C:\Sun\jwsd
p-2.0\apache-ant\lib\ant.jar
[wsdeploy] info: created temporary directory: C:\DOCUME~1\Nihar\LOCALS~1\Temp\j
axrpc-deploy-8137cc
[wsdeploy]
[wsdeploy] [CustomClassGenerator: Class hello.HelloIF_sayHelloBack_RequestStruc
t exists. Not overriding.]
[wsdeploy] [CustomClassGenerator: Class hello.HelloIF_sayHelloBack_ResponseStru
ct exists. Not overriding.]
[wsdeploy] [CustomClassGenerator: Class hello.HelloIF_sayHelloBackOneWay_Reques
tStruct exists. Not overriding.]
[wsdeploy] [SOAPObjectSerializerGenerator: writing serializer/deserializer for
: {http://hello.org/wsdl}sayHelloBack]
[wsdeploy] [SOAPObjectSerializerGenerator: writing serializer/deserializer for
: {http://hello.org/wsdl}sayHelloBackResponse]
[wsdeploy] [SOAPObjectSerializerGenerator: writing serializer/deserializer for
: {http://hello.org/wsdl}sayHelloBackOneWay]
[wsdeploy] [SOAPObjectBuilderGenerator: writing object builder for: sayHelloBac
k]
[wsdeploy] [SOAPObjectBuilderGenerator: writing object builder for: sayHelloBac
kResponse]
[wsdeploy] [SOAPObjectBuilderGenerator: writing object builder for: sayHelloBac
kOneWay]
[wsdeploy] [SerializerRegistryGenerator: creating serializer registry: hello.He
lloWorldService_SerializerRegistry]
[wsdeploy] info: created output war file: C:\Sun\jwsdp-2.0\jaxrpc\build\samples
\HelloWorld\jaxrpc-HelloWorld.war
[wsdeploy]
[echo] Copying jaxrpc-HelloWorld.war to ../../build/../../jaxrpc/samples/He
lloWorld
[copy] Copying 1 file to C:\Sun\jwsdp-2.0\jaxrpc\samples\HelloWorld
BUILD SUCCESSFUL
Total time: 4 secondsFirst thing, when Jdev does the automatic compilation, then why to bother for an ant script.
and further as the script output says, check the compiler error log for a detailed information. From the error output you have posted, it seems that framework library files are not on the classpath and hence you are getting the issue.
--Shiv -
Help in forming SOAP message for Bpel process
Hi,
I have a following schema file - UnpackMessage.xsd
<?xml version="1.0" encoding="windows-1252"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.w3.org/2001/XMLSchema/UnpackMessage"
xmlns:tns="http://www.w3.org/2001/XMLSchema/UnpackMessage"
elementFormDefault="qualified">
<complexType name="PackHandlerProcessRequestType">
<sequence>
<element name="instanceId" type="string"/>
<element name="activityName" type="string"/>
<element name="result" type="string"/>
</sequence>
</complexType>
<element name="PackHandlerProcessRequest" type="tns:PackHandlerProcessRequestType"/>
</schema>
and the following wsdl file for a bpel process
<?xml version = '1.0' encoding = 'UTF-8'?>
<definitions name="PackManagerWSDL"
targetNamespace="http://xmlns.oracle.com/PackManager"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
xmlns:client="http://xmlns.oracle.com/PackManager"
xmlns:tns="http://xmlns.oracle.com/PackManager"
xmlns:ns2="urn:UnpackHandler"
xmlns:ns3="http://www.w3.org/2001/XMLSchema/UnpackMessage">
<types>
<schema attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/PackManager"
xmlns="http://www.w3.org/2001/XMLSchema"
>
<import namespace="http://www.w3.org/2001/XMLSchema/UnpackMessage" schemaLocation="UnpackMessage.xsd"/>
<element name="PackManagerProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="PackManagerRequestMessage">
<part name="payload" type="ns3:PackHandlerProcessRequestType"/>
</message>
<message name="PackManagerResponseMessage">
<part name="payload" element="client:PackManagerProcessResponse"/>
</message>
<portType name="PackManager">
<operation name="initiate">
<input message="client:PackManagerRequestMessage"/>
</operation>
</portType>
<portType name="PackManagerCallback">
<operation name="onResult">
<input message="client:PackManagerResponseMessage"/>
</operation>
</portType>
<plnk:partnerLinkType name="PackManager">
<plnk:role name="PackManagerProvider">
<plnk:portType name="client:PackManager"/>
</plnk:role>
<plnk:role name="PackManagerRequester">
<plnk:portType name="client:PackManagerCallback"/>
</plnk:role>
</plnk:partnerLinkType>
</definitions>
The receive activity in bpel process expects input message "PackManagerRequestMessage" of type "PackHandlerProcessRequestType"
Now on invoking the Bpel process directly by using the console ... the default input to the process looks like this -
<payload xmlns="" xmlns:def="http://www.w3.org/2001/XMLSchema/UnpackMessage"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:type="def:PackHandlerProcessRequestType">
<instanceId xmlns="http://www.w3.org/2001/XMLSchema/UnpackMessage">600</instanceId>
<activityName xmlns="http://www.w3.org/2001/XMLSchema/UnpackMessage">receive</activityName>
<result xmlns="http://www.w3.org/2001/XMLSchema/UnpackMessage">ok</result>
</payload>
and the receive activity gets the following as input (as taken from Flow in bpel console)
<ReceiveInput_initiate_InputVariable>
<part name="payload" >
<payload xsi:type="def:PackHandlerProcessRequestType" >
<instanceId>800</instanceId>
<activityName>receive</activityName>
<result/>
</payload>
</part>
</ReceiveInput_initiate_InputVariable>
But when i invoke the same process using a SOAP message which looks like
<?xml version = "1.0" encoding = "UTF-8"?>
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns2="http://www.w3.org/2001/XMLSchema/UnpackMessage" xmlns:xsd="http://www.w3.org/1999/XMLSchema">
<SOAP:Body>
<payload xmlns="" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="def:PackHandlerProcessRequestType">
<ns2:instanceId>600</ns2:instanceId>
<ns2:activityName>receive</ns2:activityName>
<ns2:result>OK</ns2:result>
</payload>
</SOAP:Body>
</SOAP:Envelope>
the receive activity now gets the following as input (taken from Flow in bpel console)
<ReceiveInput_initiate_InputVariable>
<part name="payload">
<ns1:instanceId>600</ns1:instanceId>
</part>
</ReceiveInput_initiate_InputVariable>
So i am losing input data. Can someone help me form appropriate SOAP message for this ?
Thanks,
SriniThanks Marc,
The SoapUI is really useful. The SOAP request as generated by the SoapUI for above case is
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:add="http://schemas.xmlsoap.org/ws/2003/03/addressing" xmlns:pack="http://xmlns.oracle.com/PackManager" xmlns:unp="http://www.w3.org/2001/XMLSchema/UnpackMessage">
<soapenv:Body>
<pack:initiate>
<payload>
<unp:instanceId>800</unp:instanceId>
<unp:activityName>receive</unp:activityName>
<unp:result/>
</payload>
</pack:initiate>
</soapenv:Body>
</soapenv:Envelope>
and the input received at BPEL was as expected.
Thanks a lot.
Srini.
Maybe you are looking for
-
Hi, I am on ECC 6.0, EHP4 (Nel GL activated) and implmenting the BCS part of FM. I am right now in testing phase and found that payments are not getting updated in table FMIFIIT. There is a field called "Payment document no", but in that field, invoi
-
I have a good mix; Vocals, acoustic guitar, second guitar. My levels are all ok in logic, no clipping, but when I bounce , my levels are higher and there is allot of clipping. I tried with and without normalizing. Any Ideas? the mix sounds totally di
-
FTP 2 IDoc with XML payload mapping
Good day, is this scenario possible or do I have to split it into two different interfaces: 1. FTP ->NFS 2.XML file -> IDoc. regards.
-
Where do we have Fixed date field in sales order
Hi All, Where do we have the field "fixed date" in the sales order, What is the relevance of the field. Thanks in Advance, Regards Jai
-
Secure erase free space on SSHD
I have a 500Gb Toshiba SSHD installed inside my MacBook as a replacement startup drive. Using Disk Utility I have tried to erase/overwrite the free space on this HD. The "Erase Free Space" button is grayed out and hovering gives the following message