Help needed: Handling web service requests from a J2SE application

I want to write an J2SE application that is able to receive and parse web service requests. I want the application to, when started, start listen for incoming requests on a specific port.
So far, I have embedded Apache Tomcat and Apache Axis in my application so that they parse the incoming requests and pass them on to my application logic.
This seems like a very cumbersome way of doing it. I have included an almost full J2EE server in my application just to be able to parse web service requests.
Is there an easier way? What technologies could I use? Any help would be greatly appreciated.

Thanks for the help!
It seems awfully complex though. Couldn't one just
listen to incoming requests on a socket and use some
good tool to parse them?
Of course you could. One of the projects in that list is a 1 class java file. It could listen for requests, then you could parse the posted SOAP messages using JAXP and pass the requests on to your application. This will require a good understanding of SOAP however, and it may end up taking more time than simply using the JWSDP with a slightly beefier server.
Given that there is only a handful carefully
specified requests that the application needs to be
able to respond to it seems overkill to include a
full servlet enabled server...

Similar Messages

  • Help needed on : Web-Services Error!

    Hello,
    I included all the web service modules to assemble my applications ear.
    I verified the web.xml entries in my application web-inf folder.
    I started the application on JBOSS server.
    Even though i followed all steps i cannot see the webservices in the webservice registry link.
    I am trying to access a webservice called : getOrderStatus through SOAP UI application.
    Endpoint url used is :
    http://localhost:8080/commerce/order/getOrderStatus/getOrderStatus
    request sent is :
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://www.atg.com/webservices">
       <soapenv:Header/>
       <soapenv:Body>
          <web:getOrderStatus soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
             <orderId xsi:type="xsd:string">12345</orderId>
          </web:getOrderStatus>
       </soapenv:Body>
    </soapenv:Envelope>I get this response:
              JBoss Web/2.1.3.GA - Error report
              HTTP Status 404 - /commerce/order/getOrderStatus/getOrderStatus
              <HR size="1" noshade="noshade">
                   <p><b>type</b> Status report</p>
                   <p><b>message</b>
                        <u>/commerce/order/getOrderStatus/getOrderStatus</u></p>
                   <p><b>description</b> <u>The requested resource
                        (/commerce/order/getOrderStatus/getOrderStatus) is not
                        available.*</u></p>
                        JBoss Web/2.1.3.GA                    Please let mek now where i am going wrong?
    Also i am not able to view ant webservice in the webservice registry.

    Already had checked that the .war of the webservice is there in the final deployed .ear of my application.
    I consider it as ATG installation issue this issue is not arising on a fresh installation on another machine.
    But now i have problems accessing the webservice through SOAP UI. There is some syntax mismatch of the SOAP request generated and ATG expected for the webservice to be called.
    Thanks for your help.

  • Help needed in web service example. Thank!!!

    Hi,
    I tested WebLogic 6.1 message-style web service example. For the
    ProducerClient.java example, I tested successfully. But for
    the ConsumerClient.java example, I kept getting error messages.
    Can any expert offers some explanation or advice? Need to
    show my boss the cool thing. Any help is highly appreciated.
    Thanks.
    David
    The server-side message is:
    Servlet failed with Exception
    java.lang.NullPointerException
    at weblogic.soap.server.servlet.QueueReceiveAdapter.doPost(QueueReceiveA
    dapter.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:263)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2390)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1959)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    The client-side message:
    Server returned HTTP response code: 500 for URL: http://localhost:70
    01/msg/receiveMsg
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:674)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURL
    Connection.java:1163)
    at weblogic.soap.WebServiceProxy.getSessionCookie(WebServiceProxy.java:5
    09)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:477)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at ConsumerClient.main(ConsumerClient.java:52)

    Hi,
    I tested WebLogic 6.1 message-style web service example. For the
    ProducerClient.java example, I tested successfully. But for
    the ConsumerClient.java example, I kept getting error messages.
    Can any expert offers some explanation or advice? Need to
    show my boss the cool thing. Any help is highly appreciated.
    Thanks.
    David
    The server-side message is:
    Servlet failed with Exception
    java.lang.NullPointerException
    at weblogic.soap.server.servlet.QueueReceiveAdapter.doPost(QueueReceiveA
    dapter.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:263)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:200)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:2390)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:1959)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    >
    The client-side message:
    Server returned HTTP response code: 500 for URL: http://localhost:70
    01/msg/receiveMsg
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:674)
    at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURL
    Connection.java:1163)
    at weblogic.soap.WebServiceProxy.getSessionCookie(WebServiceProxy.java:5
    09)
    at weblogic.soap.WebServiceProxy.receive(WebServiceProxy.java:477)
    at weblogic.soap.WebServiceProxy.invoke(WebServiceProxy.java:431)
    at weblogic.soap.SoapMethod.invoke(SoapMethod.java:186)
    at ConsumerClient.main(ConsumerClient.java:52)

  • Calling web service request from PL/SQL

    I am trying to create Apex page with stock quote ticker - like what Yahoo has on their page. I have the right web service and have put together a page which works when you submit (created by the wizard). Instead of clicking submit to refresh the page I want to use Ajax to do this but for this purpose I need to know how to call web service from PL/SQL so I can do this in my on demand process. Any ideas?

    George,
    The documented way to call a web service using PL/SQL is to use UTL_DBWS package.
    Here are a couple of links that may be useful:
    http://www.oracle-base.com/articles/10g/utl_dbws10g.php
    http://www.oracle.com/technology/sample_code/tech/java/jsp/callout_users_guide.htm
    There is also an APEX package wwv_flow_web_services, but I couldn't find any documentation on it.
    Sima

  • Help needed creating Web Service Proxy with SSL

    Hi All, I really need your help. I need to create a Web Service proxy for a web service which is SSL enabled and developed in Netbeans. I have been given keystore as well as certificates files and I have copied "keystore.jks" in my c:\Documents and Settings\<user> and the certifcates to <JAVA_HOME>\jre\lib\security\cacerts. Now when I run the Proxy creation wizard and give the location of the WSDL file, JDeveloper gives an error "Error importing schemas: Default SSL Context init failed: Invalid keystore format". Can anyone please guide me what I am doing wrong here. I will appreciate your help.
    Thanks in advance.
    John

    I am using JDeveloper 10.1.3.3.0. Thanks Heaps

  • Help needed on web services assignement

    Hello everyone!
    I am a student and i have to build a web service in one of our courses, using java, xml, jaxp, soap...
    I have taken an export of a library's database in XML format. The question is how to build a web service on this material in a way that as an application could be considered as a web service.
    Sorry for my questions that may seem silly, but after studding for over a month now, i steel cannot recognize easily a web service and a service over the web.
    Any suggestion would be highly appreciated.
    Thanks for your time,
    A.T.

    Hey,
    To develope webservice by using you have so many options.i.e In java so many SOAP engines are available like AXIS,XFIRE,CXF,by using weblogic api,by using websphere api.In intial stage just start with AXIS framework.To develope webservice follow the below steps .
    Step1:Download AXIS framework the following URL
    http://ws.apache.org/axis/
    Step2:Write a java class and configure about the service in serverconfig.wsdd file and write one more wsdd for deploy.
    Step3:Deploy that service in AXIS by running the following command
    java org.apache.axis.client.AdminClient urdeploy.wsdd
    Thanks&Regards,
    M.Kumaraswamy.

  • Help needed regarding web service

    I implemented a stateless session bean(also remote and home interface)
    and created a jar file for that bean. After that I converted this bean into a web service using 'servicegen' task and created corresponding client jar using 'clientgen' task. After that I can access that bean method(only one method which accepts List object as parameter) by using URI.
    Here I got the problem. When I give the URI I got the method name and I clicked on it, it asks the input for the List object.
    I give the data as
    <list xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xsi:type="java:language_builtins.util">
    <linkDataDecorator xmlns:n1="java:com.b2.indigo.layout.display"
    xsi:type="n1:LinkDataDecorator">
    <n1:linkData xmlns:n2="java:com.b2.indigo.layout.display"
    xsi:type="n2:LinkData">
    <data>ggg</data>
    <label>hhh</label>
    </n1:linkData>
    </linkDataDecorator>
    </list>
    when click on Invoke button I got exception like Failed to invoke service:
    javax.xml.soap.SOAPException: failed to deserialize xml:weblogic.xml.schema.binding.DeserializationException: type mapping lookup failure on type=['java:com.b2.indigo.layout.display']:n1:LinkDataDecorator TypeMapping=TYPEMAPPING SIZE=2 ENTRY 1: class: java.util.List xsd_type: ['java:language_builtins.util']:p2:List ser: [email protected]1430 deser: [email protected]d62f1 ENTRY 2: class: com.b2.indigo.layout.display.HtmlBuildingInfoVO xsd_type: ['java:com.b2.indigo.layout.display']:p1:HtmlBuildingInfoVO ser: com.b2.indigo.layout.display.HtmlBuildingInfoVOCodec@19ac931 deser: com.b2.indigo.layout.display.HtmlBuildingInfoVOCodec@10ec447 at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:389) at weblogic.webservice.tools.pagegen.SampleInstance.getJavaObject(SampleInstance.java:145) at weblogic.webservice.server.servlet.ServletBase.getJavaParams(ServletBase.java:438) at weblogic.webservice.server.servlet.ServletBase.invokeMultiOutput(ServletBase.java:342) at weblogic.webservice.server.servlet.WebServiceServlet.invokeMultiOutput(WebServiceServlet.java:353) at weblogic.webservice.server.servlet.ServletBase.invokeOperation(ServletBase.java:300) at weblogic.webservice.server.servlet.WebServiceServlet.invokeOperation(WebServiceServlet.java:343) at weblogic.webservice.server.servlet.ServletBase.handleGet(ServletBase.java:266) at weblogic.webservice.server.servlet.ServletBase.doGet(ServletBase.java:158) at weblogic.webservice.server.servlet.WebServiceServlet.doGet(WebServiceServlet.java:254) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764) at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178) Caused by: weblogic.xml.schema.binding.DeserializationException: type mapping lookup failure on type=['java:com.b2.indigo.layout.display']:n1:LinkDataDecorator TypeMapping=TYPEMAPPING SIZE=2 ENTRY 1: class: java.util.List xsd_type: ['java:language_builtins.util']:p2:List ser: [email protected]1430 deser: [email protected]d62f1 ENTRY 2: class: com.b2.indigo.layout.display.HtmlBuildingInfoVO xsd_type: ['java:com.b2.indigo.layout.display']:p1:HtmlBuildingInfoVO ser: com.b2.indigo.layout.display.HtmlBuildingInfoVOCodec@19ac931 deser: com.b2.indigo.layout.display.HtmlBuildingInfoVOCodec@10ec447 at weblogic.xml.schema.binding.RuntimeUtils.lookup_deserializer(RuntimeUtils.java:443) at weblogic.xml.schema.binding.internal.builtin.XSDAnyCodec.deserialize(XSDAnyCodec.java:106) at weblogic.xml.schema.binding.SoapArrayCodecBase$EntryIterator.getNextObject(SoapArrayCodecBase.java:751) at weblogic.xml.schema.binding.SoapArrayCodecBase$EntryIterator.(SoapArrayCodecBase.java:707) at weblogic.xml.schema.binding.SoapArrayCodecBase.deserialize(SoapArrayCodecBase.java:288) at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:428) at weblogic.xml.schema.binding.RuntimeUtils.invoke_deserializer(RuntimeUtils.java:328) at weblogic.webservice.core.DefaultPart.toJava(DefaultPart.java:384) ... 21 more

    Hi,
    What is the version of the weblogic server and service pack you are using ?
    Regards
    Anilkumar kari

  • When there is web service request, we need to write to text file

    Hello, Im currently using a web service request (particularly the read request variable). What my application does is that when a user enters the url
    http://127.0.0.1:8001/WebService/Process?1=1&2=0&3​=1&4=0&5=0
    LED 1 and 3 turns on, while the other LEDs are turned off. I would like also to keep text file logs on what is the current time now, and the status of the LEDs. I want only to write to the file everytime the user enters the query in the URL (I dont want to write the logs every second or so, just only when the user presses the go button in the browser) 
    I can now write to a text file the current datetime stamp, and already setup the web services. But I cant figure out how can I execute this write process everytime the user fires up a web request.
    Basically, how can I write to a text file the status of the LEDs each time there is a URL request? 
    Attached is the project. Thanks
    Attachments:
    DOE_LabView_v2.zip ‏15 KB

    One reason you might not be getting any errors is that you aren't looking for errors. Connect up the error clusters and then display what you get.
    Where are you getting the path that you are writing to?
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Special Character XML Web Service call from Flex

    Hi,
    Let me first give a little background.
    I have to query and return data in XML format. To do so, I have created a custom DSC component. In cases where XML has special characters, LC throws error saying that XML is not properly formed. To over come this issue I used CDATA tag at DSC component. Now LC works as it should and I returns correct result.
    I have a web service call from Flex to get this XML result. Every time i trigger this web service I get an error message saying </document> tag is missing.
    I understand in Flex, web service returned data is wrapped in CDATA tag, thats what i causing all this issue.
    I am not sure, how to handle this situation, I am sure this is a common problem and there should be ways to work around it.
    I would really appreciate if any one could point me in the right direction.
    Thank you ..

    The web service has four operations in it, I need pingQuery operation execution code since it doesnot need any input value.
    I have used code something like this.. Any one please correct me if I am wrong..
    <mx:WebService 
    <mx:WebService> id="webService" wsdl=""https://hydrogen.csd.sc.edu/axis2/services/AcademicHistoryService?wsdl
    >
    <mx:operation name="pingQuery"resultFormat="
    object"result="resultHandler(event);"
    fault="faultHandler(event);"
    >
    <mx:request>
    <PingQuerySpecification>
    <value>
    fsdf
    </value>
    </PingQuerySpecification>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    private function resultHandler(evt:ResultEvent):void {Alert.show(ObjectUtil.toString(evt.result));
    private function faultHandler(evt:FaultEvent):void {Alert.show(evt.message.toString());

  • Web Service Request Failed

    Hello,
    Errors in the EE 4 with RedHat ES 3.
    Web Service Request Failed
    The following fault was returned from the web service call:
    Code HTTP
    String (404)/axis/services/rpc/webtopsession
    ------ log -----
    Starting service Tomcat-Standalone
    Apache Tomcat/4.1.29
    Apr 15, 2005 12:26:03 PM org.apache.jk.common.ChannelSocket init
    INFO: JK2: ajp13 listening on /0.0.0.0:8009
    Apr 15, 2005 12:26:03 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/86 config=null
    AxisFault
    faultCode: {http://xml.apache.org/axis/}HTTP
    faultSubcode:
    faultString: (404)/axis/services/rpc/webtopsession
    faultActor:
    faultNode:
    faultDetail:
    {}string: return code: 404
    <html><head><title>Apache Tomcat/4.1.29 - Error
    report</title><STYLE><!--H1{font-family :
    sans-serif,Arial,Tahoma;color : white;background-color : #0086b2;}
    H3{font-family : sans-serif,Arial,Tahoma;color : white;background-color :
    #0086b2;} BODY{font-family : sans-serif,Arial,Tahoma;color :
    black;background-color : white;} B{color : white;background-color :
    #0086b2;} HR{color : #0086b2;} --></STYLE>
    </head><body><h1>HTTP Status 404 -
    /axis/services/rpc/webtopsession</h1><HR size="1"
    noshade><p><b>type</b> Status
    report</p><p><b>message</b>
    <u>/axis/services/rpc/webtopsession</u></p><p><b>description</b>
    <u>The requested resource (/axis/services/rpc/webtopsession) is not
    available.</u></p><HR size="1"
    noshade><h3>Apache
    Tomcat/4.1.29</h3></body></html>
    (404)/axis/services/rpc/webtopsession
    at
    org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630)
    at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128)
    at
    org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
    at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
    at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180)
    at org.apache.axis.client.Call.invokeEngine(Call.java:2564)
    at org.apache.axis.client.Call.invoke(Call.java:2553)
    at org.apache.axis.client.Call.invoke(Call.java:2248)
    at org.apache.axis.client.Call.invoke(Call.java:2171)
    at org.apache.axis.client.Call.invoke(Call.java:1691)
    at
    com.tarantella.tta.webservices.client.apis.apache.BaseRequest.callServiceWork(BaseRequest.java:316)
    at
    com.tarantella.tta.webservices.client.apis.apache.BaseRequest.callService(BaseRequest.java:213)
    at
    com.tarantella.tta.webservices.client.apis.apache.BaseRequest.callService(BaseRequest.java:205)
    at
    com.tarantella.tta.webservices.client.apis.apache.WebtopSessionRequest.startSession(WebtopSessionRequest.java:62)
    at
    com.tarantella.tta.webservices.client.views.SessionBean.startSession(SessionBean.java:545)
    at
    org.apache.jsp.sessionmanager_jsp.createNewSession(sessionmanager_jsp.java:276)
    at
    org.apache.jsp.sessionmanager_jsp.joinSessionByClientId(sessionmanager_jsp.java:236)
    at
    org.apache.jsp.sessionmanager_jsp._jspService(sessionmanager_jsp.java:619)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at
    org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
    at
    org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
    at
    org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
    at org.apache.jsp.index_jsp._jspService(index_jsp.java:483)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    com.tarantella.tta.webservices.valves.InputFilter.invoke(InputFilter.java:74)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2417)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:309)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:387)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:673)
    at
    org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:615)
    at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:786)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
    at java.lang.Thread.run(Thread.java:534)

    Hello,
    We have same problem on SGD4.2 on Solaris 10 with IE HTML Client.
    Do you solve it ?
    How ?
    Please help.
    Regards.

  • Configuring SSL to make a HTTPS web Service call from XI

    Hi All,
    We are making a <b>https web service call</b> using soap adapter from XI. Looking at the various posts and SAP help links, we are configuring SSL for the same.
    The procedure given in SAP help has been followed to configure SSL but with no luck. If someone had done this could you please give a <b>step by step procedure</b> to configure SSL, we might have missed out on something.
    Also are there are <b>any other settings apart from SSL</b> to be done to make a  https web service call using soap adapter from XI.
    Cheers,
    Chandra

    user13046122 wrote:
    I have an old pl/sql "helper" package, originally written to make SOAP Web Service calls from the database - it uses UTL_HTTP to invoke the target services.
    I now need to make SOAP Web Service calls - from an 8.1.7.4 database
    But the version of UTL_HTTP inside 8.1.7.4 does not contain the functions needed in the helper package
    Can anybody suggest a means of making SOAP Web Service calls from an 8.1.7.4 database ?I think you'll be very lucky to find anyone here who still has access to a version of Oracle that is that old.... I mean... that's like what? 15 years old at least? I'm surprised you've still got hardware that can run that.
    It would probably help if you could post what code you've got and explain which function(s) it's complaining about, as I doubt people will want to guess.

  • How to create Web Service Client from wsdl with digital signature?

    Please, help me to create Web Service Client from wsdl with digital signature. I know create Web Service client from wsdl file and I know how to add digital signature to XML with jwsdp, but I don't know how to do it together.
    Thanks.

    I'm handling security wit JAX-WS handler. So I insert "manually" ws-security tag and I encrypt (and sign) message parts.
    On client side, all works fine, but on server side I obtain:
    ---Server Inbound SOAP message---|#]
    Decrypting message and rebuilding Valuees... |#]
    Starting decrypt|#]
    . dectypted.!
    --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<---|#]If you have any idea for solving my problem, then I can post my simple example :(
    Bye!

  • Invoke web service created from workshop

    Hi,
    I am trying to write a stand alone java client to connect to web service created
    from workshop( please see the attached wsdl file), but can't get it work. Did
    somebody know why. Here is my java client code :
    import java.net.URL;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.namespace.QName;
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.WebServiceSession;
    import weblogic.webservice.context.WebServiceHeader;
    public class OrderTestClient {
    public static void main(String[] args) {
    try {
    // Setup the global JAXM message factory
    System.setProperty("javax.xml.soap.MessageFactory",
    "weblogic.webservice.core.soap.MessageFactoryImpl");
    // Setup the global JAX-RPC service factory
    System.setProperty("javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    // define qnames
    //String targetNamespace = "http://localhost/orderweb";
    String targetNamespace = "http://www.openuri.org/";
    QName serviceName = new QName(targetNamespace, "newsmlorder");
    QName portName = new QName(targetNamespace, "newsmlorderSoap");
    //QName operationName = new QName("tns:newsmlorderSoap", "getUserAddress");
    QName operationName = new QNam("http://localhost:7021/orderweb/", "getUserAddress");
    URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
    // create service
    Service service = factory.createService(wsdlLocation, serviceName);
    // create call
    Call call = service.createCall(portName, operationName);
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session =(WebServiceSession)wsContext.getSession();
    System.out.println(" Session : " + session.toString() );
    System.out.println(" == step 11 ===");
    // invoke the remote web service
    System.out.println(" == step 12 ===");
    String result = (String) call.invoke(new Object[] {"testPing"});
    System.out.println("test result : " + result);
    catch (Exception e) {
    System.out.println("test result : " + e.getMessage());
    [order.wsdl]

    Hi,
    I did not get any error, however the service call is always return null even though
    I hard code return String, so I knew it failed.
    I tried your following code and it worked. You mention that I have to download
    proxy.jar from workshop overview page, but I can't find it. Would you please tell
    me where to find the download menu in workshop.
    If I want to build a dynamic stand alone client to invoke service created from
    workshop ( my original approach), what should I do?
    I am trying to use workshop to handle multipart soap message (soap message with
    attachments), could you please send me a example ?
    Very appreciate your help!
    Thanks again.
    Lina
    Vimala Ranganathan" <[email protected]> wrote:
    >
    >
    >
    Hi Lina,
    Are you getting any errors?
    Did you happen to try with a static client? Is that working?
    (For static client you have to download the proxy jar from the workshop
    overview
    page and have it in the classpath)
    I have attacjhed the proxy jar and here is a sample client. Let me know
    how this
    goes.
    public class Test
    public static void main(String [] args)
         Newsmlorder_Impl m_proxyImpl = null;
         NewsmlorderSoap m_proxy = null;
         try
              m_proxyImpl = new Newsmlorder_Impl();
              catch (IOException ex)
              System.out.println("Error getting proxy");
              ex.printStackTrace();
              m_proxy = m_proxyImpl.getnewsmlorderSoap();
              GetUserAddress p = m_proxy.getUserAddress();
    Thanks a lot,
    Vimala Ranganathan
    "Lina Li" <[email protected]> wrote:
    Hi,
    I am trying to write a stand alone java client to connect to web service
    created
    from workshop( please see the attached wsdl file), but can't get itwork.
    Did
    somebody know why. Here is my java client code :
    import java.net.URL;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.Call;
    import javax.xml.namespace.QName;
    import weblogic.webservice.context.WebServiceContext;
    import weblogic.webservice.context.WebServiceSession;
    import weblogic.webservice.context.WebServiceHeader;
    public class OrderTestClient {
    public static void main(String[] args) {
    try {
    // Setup the global JAXM message factory
    System.setProperty("javax.xml.soap.MessageFactory",
    "weblogic.webservice.core.soap.MessageFactoryImpl");
    // Setup the global JAX-RPC service factory
    System.setProperty("javax.xml.rpc.ServiceFactory",
    "weblogic.webservice.core.rpc.ServiceFactoryImpl");
    // create service factory
    ServiceFactory factory = ServiceFactory.newInstance();
    // define qnames
    //String targetNamespace = "http://localhost/orderweb";
    String targetNamespace = "http://www.openuri.org/";
    QName serviceName = new QName(targetNamespace, "newsmlorder");
    QName portName = new QName(targetNamespace, "newsmlorderSoap");
    //QName operationName = new QName("tns:newsmlorderSoap","getUserAddress");
    QName operationName = new QNam("http://localhost:7021/orderweb/",
    "getUserAddress");
    URL wsdlLocation = new URL("http://localhost:7021/orderweb/newsmlorder.jws?WSDL");
    // create service
    Service service = factory.createService(wsdlLocation, serviceName);
    // create call
    Call call = service.createCall(portName, operationName);
    WebServiceContext wsContext = WebServiceContext.currentContext();
    WebServiceSession session =(WebServiceSession)wsContext.getSession();
    System.out.println(" Session : " + session.toString() );
    System.out.println(" == step 11 ===");
    // invoke the remote web service
    System.out.println(" == step 12 ===");
    String result = (String) call.invoke(new Object[] {"testPing"});
    System.out.println("test result : " + result);
    catch (Exception e) {
    System.out.println("test result : " + e.getMessage());

  • System processes needed for web service call

    Hi experts,
    one theoretical question: how about the system processes needed for a web service call? If have created a test service that does nothing except to wait for 10 seconds. When I call it from outside, no extra process is busy (as seen in trx SM50). Is it possible that one web service call (from outside -> SAP machine) does not need a DIA or BTC process on SAP machine?
    Thanks in advance for your help!
    Kind regards, Matthias

    Hi,
    Of course a web service needs a dialog workprocess to run.
    But if you used the "wait" abap instruction, it may be that this instruction frees the work process ?
    Regards,
    Olivier

  • Permissions Web Service Requests

    Okay, I'm moving from "Groups" to "Permissions".
    This post is just an FYI…not sure it's a bug or a feature…or even a little bit of both at the same time.
    In the "Permissions" web service requests (AddPermission, etc.) if you do not specify either a ParentHandle or ParentPath, the web service request is applied to your site root. You can still use a single forward slash as ParentPath for "root"…it has the same effect as leaving ParentPath and ParentHandle empty.
    If I recall correctly, most requests that take either a handle or path will return an error if neither is specified. I think this may be one of a small subset of requests that assumes "root" if both are missing.

    More notes on permissions…again, I think things work as intended, but I thought I'd mention this tidbit in the event that it might be useful to others.
    MergePermission can only work with an existing permission (access-level/credential pair)…this is as expected. If you try to "merge" a permission for a credential which does not exist, or if you do not specify a credential, you get an error saying that MergePermission cannot find the target credential. In effect, MergePermission changes the access-level for any permission it can find by-way-of an existing credential.
    Similarly, you cannot ask MergePermission to change the form of a credential. For example, you cannot use MergePermission to "change the credential whose associated access-level is 'Download' from 'Test@urn:mace…' to 'Student@urn:mace…'." MergePermission must always find that a target credential exists.
    However, when dealing with an existing permission, there is no effective difference between AddPermission and MergePermission. That is, if you add a permission whose credential already exits, then you overwrite it as-if you had merged it. Again, this works as expected. A "student", say, cannot have both "Downlaod" and "No Access" within the same iTunes U page. The only warning I would give is that AddPermission can act destructively…you are not warned, when using it, that if the permission you wish to add corresponds to a permission which already exists, then that permission will be overwritten.

Maybe you are looking for

  • Ipad won't sync . Error message 1140

    i connect my ipad to my macbook air and it comes up with this error message. It isn't full and im only asking it to sync apps and photos - no music or film/tv

  • Finding multiple strings in a text file and deleting the entire line

    Get-Content c:\output-Copy.txt | Where-Object {$_ -notmatch 'something1', 'something2', 'something3', 'something4' } | Set-Content temp.txt Above is the program that when it has 1 argument in the -notmatch part will find the specific string and delet

  • Oracle AWM

    Dear community, I would like to create cubes and to perform olap analysis by Oracle. I read that there is an Oracle tool named AWM (Analytic Workspace Manager) that do exactly this. The problem is that I can't find the download link in the Oracle Dow

  • Apple Universal Doc comes with iPhone, not iPhone 3G adapter??

    Adapters for the iPhone 3G are sold separately (for those with an older universal doc I would have thought). But the list of five included adapters only shows the original iPhone not the 3G. I'm considering the universal doc instead of the 3G only do

  • Barcode Scanner app using Javascript for windows 8 tablet

    I want to create a barcode scanner app in which i want to start the camera preview, and read the barcode. Is there any sample code? I have used the below code but its working only with windows desktop not working with tablet. function openScanner() {