Sending SOAPMessage to JAXMServlet

Hello people !
I am trying to send a SOAPMessage from standalone client by SOAP P2P connection and this message should be received by JAXMServlet.
When a execute soapConnection.call(...) I receive on client the below error for TraceLogger but I don't have idea when this class should to be :
Exception in thread main
java.lang.NoClassDefFoundError: oracle/j2ee/util/TraceLogger
at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.log(MessageFactoryImpl.java:249)
at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.createVersionedMessage(MessageFactoryImpl.java:235)
at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:131)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:520)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:865)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:148)
at com.savino.banking.client.uploader.Uploader.send(Uploader.java:89)
at com.savino.banking.client.uploader.Uploader.send(Uploader.java:115)
at com.savino.banking.client.uploader.startGenerator
Anyone have the same problem?
Or anyone have experience with this type of application ?
I want only trasfer aSOAPMessage from client to server , there is some simpliest solution ( oracle wizard ...Web service ) ?
thanks in advance

Hello people !
I am trying to send a SOAPMessage from standalone client by SOAP P2P connection and this message should be received by JAXMServlet.
When a execute soapConnection.call(...) I receive on client the below error for TraceLogger but I don't have idea when this class should to be :
Exception in thread main
java.lang.NoClassDefFoundError: oracle/j2ee/util/TraceLogger
at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.log(MessageFactoryImpl.java:249)
at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.createVersionedMessage(MessageFactoryImpl.java:235)
at oracle.j2ee.ws.saaj.soap.MessageFactoryImpl.createMessage(MessageFactoryImpl.java:131)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post(HttpSOAPConnection.java:520)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PriviledgedPost.run(HttpSOAPConnection.java:865)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call(HttpSOAPConnection.java:148)
at com.savino.banking.client.uploader.Uploader.send(Uploader.java:89)
at com.savino.banking.client.uploader.Uploader.send(Uploader.java:115)
at com.savino.banking.client.uploader.startGenerator
Anyone have the same problem?
Or anyone have experience with this type of application ?
I want only trasfer aSOAPMessage from client to server , there is some simpliest solution ( oracle wizard ...Web service ) ?
thanks in advance

Similar Messages

  • Passing and accessing SOAPMessage in service and client

    Hi,
    I am trying to develop a web service with attachments. I want send attachment from client and save the file in server. From server also want attach one file and would like to access and store it in client file system.
    What should be the my service method signature?
    I am SOAPConnection, call method is returnning SOAPMessage. But when I tries to send SOAPMessage from service its not working.
    My service method signature is like below.
    public SOAPMessage getFingerPrintImage(java.lang.String fileName)
    From the client I called the service, call is successful got the value "fileName" (passed as argument)
    How can I access the entire object in this service method?
    In service I have created SOAPMessage. How ca I return it to client?
    I am using Websphere 5.1 test environment, RAD tool.
    I am able to solve this problem in websphere6.0 using DataHandler object and swaRef.xsd. But we are looking the solution in 5.1 server.
    Any help in this regard is greatly appreciated...
    Regards,
    Venkat S

    Hi,
    I am trying to develop a web service with attachments. I want send attachment from client and save the file in server. From server also want attach one file and would like to access and store it in client file system.
    What should be the my service method signature?
    I am SOAPConnection, call method is returnning SOAPMessage. But when I tries to send SOAPMessage from service its not working.
    My service method signature is like below.
    public SOAPMessage getFingerPrintImage(java.lang.String fileName)
    From the client I called the service, call is successful got the value "fileName" (passed as argument)
    How can I access the entire object in this service method?
    In service I have created SOAPMessage. How ca I return it to client?
    I am using Websphere 5.1 test environment, RAD tool.
    I am able to solve this problem in websphere6.0 using DataHandler object and swaRef.xsd. But we are looking the solution in 5.1 server.
    Any help in this regard is greatly appreciated...
    Regards,
    Venkat S

  • Dynamic change of display

    Hello,
    I want to change the labels on a 7941 dynamic. We have several people using a phone pool and I don't want to reset the phones every time someone is using a different phone... (the phone numbers them self will be forwarded by the phone server ..)

    Hi stephan
    we are upgrading CCM 4.1 to CCM 5.0(1),In 5.0 CCM How to get the Real-Time Informaion (Ip address,Directory number,...) using RisPort webservice ,can you send me sample java code to get the Real-Time information,iam sending SOAPMessage to the CCM but iam getting response with empty values (i referred CCM Developer guide.pdf for sending soap message ) if u send me the sample code it will be very useful for me
    Thanks in advance
    Regards
    Ravindra
    my mail id is:[email protected]

  • Send a Serializable java object as a payload in SOAPMessage

    Hi,
    I want to send any kind of java object (Serializable) as payload in SOAPMessage.
    I need the best solution to achive this.
    Regards,
    Riyaz..

    Lenine,
    Pardon me if I am stating the obvious here, but since you are talking about a java stored procedure, then you can use the "internal driver" to connect to the database. Have you read the relevant section of the documentation?
    (Note: Since I saw no details in your post regarding the Oracle version you are using, I have assumed the latest version, hence the above link.)
    Good Luck,
    Avi.

  • JAXMServlet gets the wrong MessageFactory on WLS 7.0

    I have a standalone client sending a SOAPMessage to a myServlet imheriting from JAXMServlet.
    When myServlet calls super.init(servletconfig) the JAXMServlet initializes the protected
    msgFactory field with the default MessageFactory object.
    This works well on Tomcat, where javax.xml.soap.MessageFactory.class is taken from
    saaj-api.jar and com.sun.xml.messaging.jaxm.soaprp.SOAPRPMessageFactoryImpl.class
    is taken from saaj-ri.jar.
    Although both jar files are in the classpath WLS tries to use some own MessageFactory.
    I know that there is an early version of WebServices pack for WLS and I even gave
    it a try. However I would like to use the same MessageFactory that runs well on Tomcat.
    Setting the property -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.class
    (I read it in a posting) did not help.
    Below is the exception I got:
    ++ /usr/lib/j2sdk1.4.0/bin/java -Xms32m -Xmx200m -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.class
    -Dweblogic.webservice.verbose=true -classpath /extlib/jwsdp-1_0/common/lib/jaxm-api.jar:/extlib/jwsdp-1_0/common/lib/saaj-api.jar:/extlib/jwsdp-1_0/common/lib/dom4j.jar:/extlib/jakarta-log4j-1.2.4/dist/lib/log4j-1.2.4.jar:/extlib/jwsdp-1_0/common/lib/commons-logging.jar:/usr/lib/j2sdk1.4.0/lib/tools.jar:/apps/bea/weblogic700/server:/apps/bea/weblogic700/server/lib/weblogic_sp.jar:/apps/bea/weblogic700/server/lib/weblogic.jar:
    -Dweblogic.Name=mexserver -Dbea.home=/apps/bea -Dweblogic.management.username=system
    -Dweblogic.management.password=weblogic -Dweblogic.ProductionModeEnabled=false -Djava.security.policy=/apps/bea/weblogic700/server/lib/weblogic.policy
    weblogic.Server
    Starting WebLogic Server...
    <Jun 25, 2002 7:40:35 PM CEST> <Notice> <Management> <140005> <Loading configuration
    /apps/bea/domains/mexdomain/./config.xml>
    <Jun 25, 2002 7:40:58 PM CEST> <Notice> <Security> <090082> <Security initializing
    using realm myrealm.>
    <Jun 25, 2002 7:40:59 PM CEST> <Notice> <WebLogicServer> <000327> <Starting WebLogic
    Admin Server "mexserver" for domain "mexdomain">
    <Jun 25, 2002 7:41:54 PM CEST> <Notice> <Management> <141052> <Application Poller
    started for development server.>
    <Jun 25, 2002 7:41:55 PM CEST> <Notice> <Security> <090092> <SSL will load trusted
    CAs from the JDK cacerts KeyStore: /usr/lib/j2sdk1.4.0/jre/lib/security/cacerts for
    realm myrealm on server mexserver.>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default"
    listening on port 7002>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default"
    listening on port 7001>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <Management> <141030> <Starting discovery
    of Managed Server... This feature is on by default, you may turn this off by passing
    -Dweblogic.management.discover=false>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000331> <Started WebLogic
    Admin Server "mexserver" for domain "mexdomain" running in Development Mode>
    <Jun 25, 2002 7:41:57 PM CEST> <Notice> <WebLogicServer> <000365> <Server state changed
    to RUNNING>
    <Jun 25, 2002 7:41:57 PM CEST> <Notice> <WebLogicServer> <000360> <Server started
    in RUNNING mode>
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider
    weblogic.webservice.core.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at ch.gbs.mex.presentation.communication.GuiEventDispatcher.<clinit>(GuiEventDispatcher.java:40)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:765)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:743)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:687)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    <Jun 25, 2002 7:42:26 PM CEST> <Error> <HTTP> <101018> <[ServletContext(id=16698784,name=mex3-gui,context-path=/mex3-gui)]
    Servlet failed with ServletException
    javax.servlet.ServletException: Unable to create message factoryUnable to create
    message factory for SOAP: Provider weblogic.webservice.core.soap.MessageFactoryImpl
    not found
    at javax.xml.messaging.JAXMServlet.init(Unknown Source)
    at ch.gbs.mex.presentation.communication.GuiEventDispatcher.init(GuiEventDispatcher.java:51)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:792)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:743)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:687)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

    The problem is that during server startup, WLS sets the JAXM
    implementation to be its own.
    The easiest thing to do is for your servlet to reset it with a
    System.setProperty to the JAXM implementation that you want.
    -- Rob
    Axel Mueller wrote:
    I have a standalone client sending a SOAPMessage to a myServlet imheriting from JAXMServlet.
    When myServlet calls super.init(servletconfig) the JAXMServlet initializes the protected
    msgFactory field with the default MessageFactory object.
    This works well on Tomcat, where javax.xml.soap.MessageFactory.class is taken from
    saaj-api.jar and com.sun.xml.messaging.jaxm.soaprp.SOAPRPMessageFactoryImpl.class
    is taken from saaj-ri.jar.
    Although both jar files are in the classpath WLS tries to use some own MessageFactory.
    I know that there is an early version of WebServices pack for WLS and I even gave
    it a try. However I would like to use the same MessageFactory that runs well on Tomcat.
    Setting the property -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.class
    (I read it in a posting) did not help.
    Below is the exception I got:
    ++ /usr/lib/j2sdk1.4.0/bin/java -Xms32m -Xmx200m -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.class
    -Dweblogic.webservice.verbose=true -classpath /extlib/jwsdp-1_0/common/lib/jaxm-api.jar:/extlib/jwsdp-1_0/common/lib/saaj-api.jar:/extlib/jwsdp-1_0/common/lib/dom4j.jar:/extlib/jakarta-log4j-1.2.4/dist/lib/log4j-1.2.4.jar:/extlib/jwsdp-1_0/common/lib/commons-logging.jar:/usr/lib/j2sdk1.4.0/lib/tools.jar:/apps/bea/weblogic700/server:/apps/bea/weblogic700/server/lib/weblogic_sp.jar:/apps/bea/weblogic700/server/lib/weblogic.jar:
    -Dweblogic.Name=mexserver -Dbea.home=/apps/bea -Dweblogic.management.username=system
    -Dweblogic.management.password=weblogic -Dweblogic.ProductionModeEnabled=false -Djava.security.policy=/apps/bea/weblogic700/server/lib/weblogic.policy
    weblogic.Server
    Starting WebLogic Server...
    <Jun 25, 2002 7:40:35 PM CEST> <Notice> <Management> <140005> <Loading configuration
    /apps/bea/domains/mexdomain/./config.xml>
    <Jun 25, 2002 7:40:58 PM CEST> <Notice> <Security> <090082> <Security initializing
    using realm myrealm.>
    <Jun 25, 2002 7:40:59 PM CEST> <Notice> <WebLogicServer> <000327> <Starting WebLogic
    Admin Server "mexserver" for domain "mexdomain">
    <Jun 25, 2002 7:41:54 PM CEST> <Notice> <Management> <141052> <Application Poller
    started for development server.>
    <Jun 25, 2002 7:41:55 PM CEST> <Notice> <Security> <090092> <SSL will load trusted
    CAs from the JDK cacerts KeyStore: /usr/lib/j2sdk1.4.0/jre/lib/security/cacerts for
    realm myrealm on server mexserver.>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default"
    listening on port 7002>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default"
    listening on port 7001>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <Management> <141030> <Starting discovery
    of Managed Server... This feature is on by default, you may turn this off by passing
    -Dweblogic.management.discover=false>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000331> <Started WebLogic
    Admin Server "mexserver" for domain "mexdomain" running in Development Mode>
    <Jun 25, 2002 7:41:57 PM CEST> <Notice> <WebLogicServer> <000365> <Server state changed
    to RUNNING>
    <Jun 25, 2002 7:41:57 PM CEST> <Notice> <WebLogicServer> <000360> <Server started
    in RUNNING mode>
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP: Provider
    weblogic.webservice.core.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at ch.gbs.mex.presentation.communication.GuiEventDispatcher.<clinit>(GuiEventDispatcher.java:40)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:765)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:743)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:687)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    <Jun 25, 2002 7:42:26 PM CEST> <Error> <HTTP> <101018> <[ServletContext(id=16698784,name=mex3-gui,context-path=/mex3-gui)]
    Servlet failed with ServletException
    javax.servlet.ServletException: Unable to create message factoryUnable to create
    message factory for SOAP: Provider weblogic.webservice.core.soap.MessageFactoryImpl
    not found
    at javax.xml.messaging.JAXMServlet.init(Unknown Source)
    at ch.gbs.mex.presentation.communication.GuiEventDispatcher.init(GuiEventDispatcher.java:51)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:792)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:743)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:687)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

  • Re: JAXMServlet gets the wrong MessageFactory on WLS 7.0

    Thanks for your response. Yes - it works when the MessageFactory is set in the servlet
    itself.
    Rob Woollen <[email protected]> wrote:
    The problem is that during server startup, WLS sets the JAXM
    implementation to be its own.
    The easiest thing to do is for your servlet to reset it with a
    System.setProperty to the JAXM implementation that you want.
    -- Rob
    Axel Mueller wrote:
    I have a standalone client sending a SOAPMessage to a myServlet imheritingfrom JAXMServlet.
    When myServlet calls super.init(servletconfig) the JAXMServlet initializesthe protected
    msgFactory field with the default MessageFactory object.
    This works well on Tomcat, where javax.xml.soap.MessageFactory.class istaken from
    saaj-api.jar and com.sun.xml.messaging.jaxm.soaprp.SOAPRPMessageFactoryImpl.class
    is taken from saaj-ri.jar.
    Although both jar files are in the classpath WLS tries to use some ownMessageFactory.
    I know that there is an early version of WebServices pack for WLS andI even gave
    it a try. However I would like to use the same MessageFactory that runswell on Tomcat.
    Setting the property -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.class
    (I read it in a posting) did not help.
    Below is the exception I got:
    ++ /usr/lib/j2sdk1.4.0/bin/java -Xms32m -Xmx200m -Djavax.xml.soap.MessageFactory=com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.class
    -Dweblogic.webservice.verbose=true -classpath /extlib/jwsdp-1_0/common/lib/jaxm-api.jar:/extlib/jwsdp-1_0/common/lib/saaj-api.jar:/extlib/jwsdp-1_0/common/lib/dom4j.jar:/extlib/jakarta-log4j-1.2.4/dist/lib/log4j-1.2.4.jar:/extlib/jwsdp-1_0/common/lib/commons-logging.jar:/usr/lib/j2sdk1.4.0/lib/tools.jar:/apps/bea/weblogic700/server:/apps/bea/weblogic700/server/lib/weblogic_sp.jar:/apps/bea/weblogic700/server/lib/weblogic.jar:
    -Dweblogic.Name=mexserver -Dbea.home=/apps/bea -Dweblogic.management.username=system
    -Dweblogic.management.password=weblogic -Dweblogic.ProductionModeEnabled=false-Djava.security.policy=/apps/bea/weblogic700/server/lib/weblogic.policy
    weblogic.Server
    Starting WebLogic Server...
    <Jun 25, 2002 7:40:35 PM CEST> <Notice> <Management> <140005> <Loadingconfiguration
    /apps/bea/domains/mexdomain/./config.xml>
    <Jun 25, 2002 7:40:58 PM CEST> <Notice> <Security> <090082> <Securityinitializing
    using realm myrealm.>
    <Jun 25, 2002 7:40:59 PM CEST> <Notice> <WebLogicServer> <000327> <StartingWebLogic
    Admin Server "mexserver" for domain "mexdomain">
    <Jun 25, 2002 7:41:54 PM CEST> <Notice> <Management> <141052> <ApplicationPoller
    started for development server.>
    <Jun 25, 2002 7:41:55 PM CEST> <Notice> <Security> <090092> <SSL willload trusted
    CAs from the JDK cacerts KeyStore: /usr/lib/j2sdk1.4.0/jre/lib/security/cacertsfor
    realm myrealm on server mexserver.>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000354> <Thread"SSLListenThread.Default"
    listening on port 7002>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000354> <Thread"ListenThread.Default"
    listening on port 7001>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <Management> <141030> <Startingdiscovery
    of Managed Server... This feature is on by default, you may turn thisoff by passing
    -Dweblogic.management.discover=false>
    <Jun 25, 2002 7:41:56 PM CEST> <Notice> <WebLogicServer> <000331> <StartedWebLogic
    Admin Server "mexserver" for domain "mexdomain" running in DevelopmentMode>
    <Jun 25, 2002 7:41:57 PM CEST> <Notice> <WebLogicServer> <000365> <Server</server>state changed
    to RUNNING>
    <Jun 25, 2002 7:41:57 PM CEST> <Notice> <WebLogicServer> <000360> <Server</server>started
    in RUNNING mode>
    javax.xml.soap.SOAPException: Unable to create message factory for SOAP:Provider
    weblogic.webservice.core.soap.MessageFactoryImpl not found
    at javax.xml.soap.MessageFactory.newInstance(Unknown Source)
    at ch.gbs.mex.presentation.communication.GuiEventDispatcher.<clinit>(GuiEventDispatcher.java:40)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
    at java.lang.Class.newInstance0(Class.java:296)
    at java.lang.Class.newInstance(Class.java:249)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:765)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:743)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:687)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    <Jun 25, 2002 7:42:26 PM CEST> <Error> <HTTP> <101018> <[ServletContext(id=16698784,name=mex3-gui,context-path=/mex3-gui)]
    Servlet failed with ServletException
    javax.servlet.ServletException: Unable to create message factoryUnableto create
    message factory for SOAP: Provider weblogic.webservice.core.soap.MessageFactoryImpl
    not found
    at javax.xml.messaging.JAXMServlet.init(Unknown Source)
    at ch.gbs.mex.presentation.communication.GuiEventDispatcher.init(GuiEventDispatcher.java:51)
    at weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:792)
    at weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:743)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:687)
    at weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:447)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:287)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:242)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:5363)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManager.java:721)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3043)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2466)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)

    Please,
    Is this the proper way of setting the System properties?
              System.setProperty( "javax.xml.soap.MessageFactory", "com.sun.xml.messaging.saaj.soap.MessageFactoryImpl.class" );
              System.setProperty( "javax.xml.rpc.ServiceFactory", "com.sun.xml.messaging.jaxm.soaprp.SOAPRPMessageFactoryImpl.class" );
    I still get a ServletException during initialization. Do I also need to set JAVA_HOME to JDK1.4.x???
    Your help is appreciated!!!

  • Reading an ebXML message from a JAXMServlet

    I have the following servlet in Tomcat 4.1.18, using the contents of java_xml_pack-summer02_01:
    public class Consume extends JAXMServlet implements OnewayListener
    private ProviderConnectionFactory pcf;
    private ProviderConnection pc;
    private static final String providerURI = "http://java.sun.com/xml/jaxm/provider";
    //private MessageFactory messageFactory;
    public void init(ServletConfig servletConfig) throws ServletException
    super.init(servletConfig);
    try
    pcf = ProviderConnectionFactory.newInstance();
    pc = pcf.createConnection();
    setMessageFactory(new EbXMLMessageFactoryImpl());
    catch (Exception e)
    e.printStackTrace();
    throw new ServletException("Couldn't initialize " + this.getClass().getName() + " servlet: " + e.getMessage());
    public void onMessage(SOAPMessage message)
    EbXMLMessageImpl ebXML = null;
    try
    System.out.println("== messagetype=" + message.getClass().getName());
    System.out.println("== constructing EbXMLMessage");
    ebXML = (EbXMLMessageImpl)message;
    System.out.println("== got EbXMLMessage " + ebXML.toString());
    catch(Exception e)
    System.out.println("== Couldn't create ebXML message from SOAP message: " + e);
    if(ebXML!=null)
    System.out.println("EbXML: From " + ebXML.getFrom().toString());
    System.out.println("EbXML: To " + ebXML.getTo().toString());
    System.out.println("EbXML: Sender " + ebXML.getSender().toString());
    System.out.println("EbXML: Receiver " + ebXML.getReceiver().toString());
    System.out.println("EbXML: CPAId " + ebXML.getCPAId());
    System.out.println("EbXML: Conversation " + ebXML.getConversationId());
    System.out.println("EbXML: Action " + ebXML.getAction());
    System.out.println("EbXML: MessageId " + ebXML.getMessageId());
    Manifest manifest = ebXML.getManifest();
    Reference[] refs = manifest.getReferences();
    for(int i=0; i<refs.length; i++)
    System.out.println("EbXML ref " + refs.getId() + ": " + refs[i].getDescription());
    ...etc
    However, after the "ebXML = (EbXMLMessageImpl)message;" line, all of the ebXML.get*() calls return null. If I use "ebXML = new EbXMLMessageImpl(message);", I get the same null results.
    I can continue on successfully deal with the SOAPMessage, but how do I correctly interpret the SOAPMessage as an EbXMLMessageImpl?
    Thanks.
    PJDM

    After investigating this, the problem seems to be that com.sun.xml.messaging.jaxm.ebxml.EbXMLMessageImpl is using the namespace
    NS_URI = "http://www.ebxml.org/namespaces/messageHeader";
    instead of
    NS_URI = "http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd";
    Subsequently, the same class attempts to parse timeStamp as a long, instead of an ISO8601 string.

  • Https  SOAPMessage  fail

    I meet a problem about https.
    I create a web project using axis, config a servlet (public class KeyResponse extends JAXMServlet implements ReqRespListener),
    in the client, declare SOAPConnection conn,SOAPMessage req,resp,correct defined, resp = conn.call(req,new URL("...")), the url is the servlet above.
    if the url is http ,works well,but if the url changes to https(I have config the certificate,made by keytool,when I click the web page ,the certificate is ok),
    the problem comes, the call function throws exceptions , why? what's the problem?

    Hi @ashleyparkes and Matias
    Thanks a lot for the suggestions. Here is some more information
    Maybe I'm missing something, what you describe sounds fundamentally flawed
    2) Why redirect, why not just ajax to the right https-address? You're basically connecting to an API and should now the place.
           - It is actually the AJAX calls that fail. I tried both, with HTTP and HTTPS addresses (using JQuery). The server I m connecting to is a Proxy which makes a 302 redirect incase of an HTTP call. Now, this redirect works on a normal browser, but fails in the Embedded browser.
    3) Since certificate validation is done by the Chrome embedded to CEP, it will only recognize those certs Chrome had as root CAs at the time it was embedded. Also means no selfsigned stuff (there is no "Accept untrusted server"-popup) but you'd have to get some well established commercial cert for your domain that works with Chrome 2012-2015 (Win and Mac).
    4) The AJAX-layer of Chrome operates under the RFC rules (https://dvcs.w3.org/hg/xhr/raw-file/tip/Overview.html#infrastructure-for-the-send%28%29-me thod) so it might behave differently from setting browser Url. For example AJAX-redirects require correct Location-header response and forbid domain changes (to avoid cross site scripting attacks).
       -  Absolutely. "there is no "Accept untrusted server"-popup", I think this could be the reason why the CEP browse blocks the requests (??). Can someone verify ?
    Using Node.js sounds like a good idea (more control) if you need redirects.
    - This is not possible at the moment for us, as it would interfere with our custom GUI framework. Currently we have disabled Node.js on the extension.
    Thanks once again
    Gayatri

  • Exception in sending message thru SOAP from java file to web service

    Hi,
    I am trying to invoke a web service from a java file.
    But my code error out at particular statement where I am sending the message i.e. at
    SOAPMessage reply = connection.call(message, destination);
    The error message is
    java.security.privilegedactionexception: javax.xml.soap.SOAPException: Message send failed: For Input string "".
    I am using the wsdl link in destination variable-
    String destination = "http://soad.xxxxxxxxxx.org:80/soa-infra/services/default/xxxxxx/xxxxxxx?WSDL";
    Please help me with the solution.

    Guys, any ideas because this is driving me a bit insane...
    If you have any alternative implementations I'm open to them but I'd like to know why isn't this working really...
    Thanks and regards
    Krt_Malta

  • How to send SOAP Message with Oracle B2B

    Hi everyone,
    I need your help to send out from Oracle B2B a SOAP message with attachment of any type of file (image, pdf, etc.). Possibly using a SOA composite application or another way, it doesn't matter. I already create an ebMS partnership with a custom document protocol and I already create a working SOA composite application to send only text message to my trading partner. I have tried this solution: http://anuj-dwivedi.blogspot.it/2011/04/ebms-attachment-handling-in-oracle-b2b.html but it doesn't work for my case... It is to be noticed that I don't give any schema to my component in the SOA application explained firstly, and I select opaque as schema.
    Thanks to all, regards
    Nello

    Hi Anuj and thanks for your help,
    I need to send an ebXML message, with SOAP, and I try to send it with a .war application written in jsp connecting to http://10.85.28.24:8001/b2b/transportServlet to send the SOAP message. The errors reported is:
    javax.xml.soap.SOAPException: Unable to receive message. Received a response from url: http://10.85.28.24:8001/b2b/transportServlet with HTTP status 200 and SOAP content-type: null.
    the code I write is the following (to evaluate the two "null" in the super constructor)
    <%!
    public class EBMSSender extends SOAPRunner
    private String cpaId;
    private String service;
    private String action;
    private String mess;
    private ArrayList<String> allegati=null;
    public EBMSSender(String cpaId, String service, String action, String mess, ArrayList<String> file)
    super("http://10.85.28.24:8001/b2b/transportServlet","null", "null");
    this.cpaId = cpaId;
    this.service = service;
    this.action = action;
    this.mess=mess;
    this.allegati=file;
    @Override
    protected void prepareRequest(SOAPMessage soapMessage, SOAPBody soapBody) throws SOAPException
    soapBody.addChildElement(SOAPUtility.createElement("CPAId", getNsPrefix(), getNsURI(),"agr3"));
    soapBody.addChildElement(SOAPUtility.createElement("service", getNsPrefix(), getNsURI(),"OracleService"));
    soapBody.addChildElement(SOAPUtility.createElement("action", getNsPrefix(), getNsURI(),"Oracletohermesb"));
    soapBody.addChildElement(SOAPUtility.createElement("serviceType", getNsPrefix(), getNsURI(),"OracleServiceType"));
    soapBody.addChildElement(SOAPUtility.createElement("convId", getNsPrefix(), getNsURI(), "convId"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyId", getNsPrefix(), getNsURI(), "Oracle"));
    soapBody.addChildElement(SOAPUtility.createElement("fromPartyType", getNsPrefix(), getNsURI(), "Name"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyId", getNsPrefix(), getNsURI(), "Hermes-b"));
    soapBody.addChildElement(SOAPUtility.createElement("toPartyType", getNsPrefix(), getNsURI(), "Name"));
    attach(soapMessage);
    protected void attach(SOAPMessage soapMessage)
    String h=mess;
    DataHandler dh;
    AttachmentPart ap = soapMessage.createAttachmentPart(h,"text/plain");
    soapMessage.addAttachmentPart(ap);
    if(allegati!=null)
    for(int i=0; i<allegati.size();i++)
    dh=new DataHandler(new FileDataSource(new File(allegati.get(i))));
    ap=soapMessage.createAttachmentPart(dh);
    ap.setContentType(new MimetypesFileTypeMap().getContentType(allegati.get(i)));
    ap.setContentLocation(allegati.get(i));
    soapMessage.addAttachmentPart(ap);
    @Override
    protected void processFault(SOAPFault soapFault) throws SOAPException{}
    @Override
    protected Object processResponse(SOAPMessage responseMessage,SOAPBody responseBody) throws SOAPException
    SOAPElement messageId = SOAPUtility.getChild(responseBody, "message_id", getNsURI());
    return null;
    %>
    The code works fine on the other trading partner side to send ebXML message to Oracle B2B. Apart from this solution (however,it would be my favorite), I find your blog and I try to implement your solution. It works: it sends files with only text payload to the other trading partner without any problem, but if I try to send for example an image in byte array written in a file .txt, the ebxml file received has the byte array with wrong characters. it may be that I have not provided the xsd schema? in case if I wanted to send an ebXML message with text and attachments, what xsd schema do I need to provide?
    or is there another way to implement a SOA composite application to send SOAP messages with attachments?
    Thank for your help!, regards
    Nello

  • Reg: sending a SAML query

    Hi,
    I have made the SAML request through java code using SOAPMessage,SOAPBody elements.. While posting the message i am getting an error with certificates
    java.security.PrivilegedActionException?: javax.xml.soap.SOAPException: Message send failed: sun.security.validator.ValidatorException?: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException?: unable to find valid certification path to requested target
    But I have imported the certificates as well. Can some one help me with a workaround for this.
    Thanks in advance

    Hi,
    >>> I created a webservice in WebDynPro using NWDS and deployed that in local machine
    There are 2 ways while dealing with a webservice (same with any other adapters)
    a. Webservice at the sender side.
    b. Calling (invoking) the serivce of an existing webservice.
    If you want to create a scenario as in option <b>a</b>
    In this case, the sender is not actually a webservice, rather it is a client (webservice client) that invokes the webservice. The actual webservice in this case is your XI server. But again XI server is not a webservice. All XI does is understands the webservice client request and converts it to a XI message and does the operation.
    If you wish to do such a scenario, there are guides available in SDN, (How to expose your outbund interface as webservice, How to Soap Adapters). Follow them.
    Best Regards,
    Jai Shankar

  • SOAP and java problem....create SOAPMessage from file. Extremely important!

    Hi,
    I've got a problem related to usage of SOAP in Java. I receive a file containing SOAP message with XML attachment. I store it on hard disk.
    Then I create a SOAP message as it is shown in source code below.
    When I try to get the attachment, the method doesn't return anything.
    If I pass to method createMessage value null instead of new MimeHeaders(), the result is the same.
    What can be the problem? How to solve it? Any idea?
    Looking forward any support.
    BR,
    rafikoko
    MessageFactory factory = MessageFactory.newInstance();
    SOAPMessage message = factory.createMessage(new MimeHeaders(), new FileInputStream(xmlFile));
    Iterator attachments = message.getAttachments();
    log4j.error("TEST:before while:"+message.countAttachments());
    while(attachments.hasNext()){
    log4j.error("TEST:while");
    Object finvoice = attachments.next();
    log4j.error("TEST:Finvoice:"+finvoice);
    }

    I attach also a SOAP message. Perhaps it will help you.
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
    <SOAP-ENV:Header>
    <eb:MessageHeader xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
    SOAP-ENV:mustUnderstand="1" eb:id="20030222133003285">
        <eb:From>
           <eb:PartyId>FI9859292720000267</eb:PartyId>
           <eb:Role>Sender</eb:Role>
        </eb:From>
        <eb:From>
           <eb:PartyId>OKOYFIHH</eb:PartyId>
           <eb:Role>Intermediator</eb:Role>
        </eb:From>
        <eb:To>
           <eb:PartyId>FI3329501800008512</eb:PartyId>
           <eb:Role>Receiver</eb:Role>
        </eb:To>
        <eb:To>
           <eb:PartyId>NDEAFIHH</eb:PartyId>
           <eb:Role>Intermediator</eb:Role>
        </eb:To>
    <eb:CPAId>yoursandmycpa</eb:CPAId>
    <eb:ConversationId>nnnnn</eb:ConversationId>
    <eb:Service>Routing</eb:Service>
    <eb:Action>ProcessInvoice</eb:Action>
    <eb:MessageData>
         <eb:MessageId>1</eb:MessageId>
         <eb:Timestamp>2003-01-22T11:12:12+02</eb:Timestamp>
         <eb:RefToMessageId/>
    </eb:MessageData>
    </eb:MessageHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <eb:Manifest eb:id="Manifest" eb:version="2.0">
    <eb:Reference eb:id="Finvoice" xlink:href="20020209-133003">
    <eb:schema eb:location="http://www.pankkiyhdistys.fi/verkkolasku/finvoice/finvoice.xsd" eb:version="2.0"/>
    </eb:Reference>
    </eb:Manifest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by Jussi Paasikallio (OKOBANK Group) -->
    <!--Sample XML file generated by XML Spy v4.2 U (http://www.xmlspy.com)-->
    <!DOCTYPE Finvoice SYSTEM "Finvoice.dtd">
    <?xml-stylesheet type="text/xsl" href="Finvoice.xsl"?>
    <!--Finvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\l\finvoice\Finvoice.xsd" Version="1.0"-->
    <Finvoice Version="1.0">
         <SellerPartyDetails>
              <SellerPartyIdentifier>0123456-7</SellerPartyIdentifier>
              <SellerOrganisationName>Pullin Kala Oy</SellerOrganisationName>
              <SellerOrganisationTaxCode>0123456-7</SellerOrganisationTaxCode>
              <SellerPostalAddressDetails>
                   <SellerStreetName>Haapatie 7</SellerStreetName>
                   <SellerTownName>Helsinki</SellerTownName>
                   <SellerPostCodeIdentifier>00100</SellerPostCodeIdentifier>
                   <CountryCode>FI</CountryCode>
                   <CountryName>FINLAND</CountryName>
                   <SellerPostOfficeBoxIdentifier>PL 302</SellerPostOfficeBoxIdentifier>
              </SellerPostalAddressDetails>
         </SellerPartyDetails>
         <SellerContactPersonName>Hanna Paananen</SellerContactPersonName>
         <SellerCommunicationDetails>
              <SellerPhoneNumberIdentifier>050-5432659</SellerPhoneNumberIdentifier>
              <SellerEmailaddressIdentifier>[email protected]</SellerEmailaddressIdentifier>
         </SellerCommunicationDetails>
         <SellerInformationDetails>
              <SellerHomeTownName>Helsinki</SellerHomeTownName>
              <SellerVatRegistrationText>Alv.Rek</SellerVatRegistrationText>
              <SellerVatRegistrationDate Format="CCYYMMDD">19990321</SellerVatRegistrationDate>
              <SellerPhoneNumber>(09) 542 1222</SellerPhoneNumber>
              <SellerFaxNumber>(09) 542 2221</SellerFaxNumber>
              <SellerCommonEmailaddressIdentifier>[email protected]</SellerCommonEmailaddressIdentifier>
              <SellerWebaddressIdentifier>www.pullinkala.fi</SellerWebaddressIdentifier>
              <SellerAccountDetails>
                   <SellerAccountID IdentificationSchemeName="IBAN">FI1234567890123456</SellerAccountID>
                   <SellerBic IdentificationSchemeName="BIC">OKOYFIHH</SellerBic>
              </SellerAccountDetails>
              <SellerAccountDetails>
                   <SellerAccountID IdentificationSchemeName="IBAN">FI1234567890123456</SellerAccountID>
                   <SellerBic IdentificationSchemeName="BIC">NDEAFIHH</SellerBic>
              </SellerAccountDetails>
         </SellerInformationDetails>
         <BuyerPartyDetails>
              <BuyerPartyIdentifier>CL12221</BuyerPartyIdentifier>
              <BuyerOrganisationName>Kalakauppa Vilkkunen</BuyerOrganisationName>
              <BuyerPostalAddressDetails>
                   <BuyerStreetName>Haapatie 1</BuyerStreetName>
                   <BuyerTownName>Helsinki</BuyerTownName>
                   <BuyerPostCodeIdentifier>00211</BuyerPostCodeIdentifier>
                   <CountryCode/>
                   <CountryName/>
                   <BuyerPostOfficeBoxIdentifier/>
              </BuyerPostalAddressDetails>
         </BuyerPartyDetails>
         <BuyerContactPersonName>Maija Vikkunen</BuyerContactPersonName>
         <BuyerCommunicationDetails>
              <BuyerPhoneNumberIdentifier>(09)221222</BuyerPhoneNumberIdentifier>
              <BuyerEmailaddressIdentifier>[email protected]</BuyerEmailaddressIdentifier>
         </BuyerCommunicationDetails>
         <InvoiceDetails>
              <InvoiceTypeCode>INV01</InvoiceTypeCode>
              <InvoiceTypeText>LASKU</InvoiceTypeText>
              <OriginCode>Origin</OriginCode>
              <InvoiceNumber>1/2002</InvoiceNumber>
              <InvoiceDate Format="CCYYMMDD">20020612</InvoiceDate>
              <SellerReferenceIdentifier>212</SellerReferenceIdentifier>
              <OrderIdentifier>TI0988</OrderIdentifier>
              <InvoiceTotalVatExcludedAmount AmountCurrencyIdentifier="EUR">100,00</InvoiceTotalVatExcludedAmount>
              <InvoiceTotalVatAmount AmountCurrencyIdentifier="EUR">22,00</InvoiceTotalVatAmount>
              <InvoiceTotalVatIncludedAmount AmountCurrencyIdentifier="EUR">122,00</InvoiceTotalVatIncludedAmount>
              <ShortProposedAccountIdentifier>9922</ShortProposedAccountIdentifier>
              <NormalProposedAccountIdentifier>8822</NormalProposedAccountIdentifier>
              <AccountDimensionText>4500</AccountDimensionText>
              <VatSpecificationDetails>
                   <VatBaseAmount AmountCurrencyIdentifier="EUR">100,00</VatBaseAmount>
                   <VatRatePercent>22</VatRatePercent>
                   <VatRateAmount AmountCurrencyIdentifier="EUR">22,00</VatRateAmount>
              </VatSpecificationDetails>
              <PaymentTermsDetails>
                   <PaymentTermsFreeText>14 p�iv�� netto</PaymentTermsFreeText>
                   <PaymentOverDueFineDetails>
                        <PaymentOverDueFineFreeText>Yliaikakorko 16%</PaymentOverDueFineFreeText>
                        <PaymentOverDueFinePercent>16</PaymentOverDueFinePercent>
                   </PaymentOverDueFineDetails>
              </PaymentTermsDetails>
         </InvoiceDetails>
         <PaymentStatusDetails>
              <PaymentStatusCode>NOTPAID</PaymentStatusCode>
         </PaymentStatusDetails>
         <VirtualBankBarcode>250003210002229000122000000000000000862074102062800009</VirtualBankBarcode>
         <InvoiceRow>
              <ArticleIdentifier>123213123332123</ArticleIdentifier>
              <ArticleName>TUURA</ArticleName>
              <BuyerArticleIdentifier>1232321232332</BuyerArticleIdentifier>
              <DeliveredQuantity QuantityUnitCode="Kpl">10</DeliveredQuantity>
              <OrderedQuantity QuantityUnitCode="Kpl">10</OrderedQuantity>
              <UnitPriceAmount AmountCurrencyIdentifier="EUR" UnitPriceUnitCode="e/kpl">5,00</UnitPriceAmount>
              <RowIdentifier>221</RowIdentifier>
              <RowIdentifierDate Format="CCYYMMDD">20020611</RowIdentifierDate>
              <RowDeliveryDate Format="CCYYMMDD">20020615</RowDeliveryDate>
              <RowShortProposedAccountIdentifier>9922</RowShortProposedAccountIdentifier>
              <RowNormalProposedAccountIdentifier>8822</RowNormalProposedAccountIdentifier>
              <RowAccountDimensionText>4500</RowAccountDimensionText>
              <RowFreeText>Tuurat myyd��n varsien kanssa.</RowFreeText>
              <RowDiscountPercent>0</RowDiscountPercent>
              <RowVatRatePercent>22</RowVatRatePercent>
              <RowVatAmount AmountCurrencyIdentifier="EUR">11,00</RowVatAmount>
              <RowVatExcludedAmount AmountCurrencyIdentifier="EUR">50,00</RowVatExcludedAmount>
              <RowAmount AmountCurrencyIdentifier="EUR">61,00</RowAmount>
         </InvoiceRow>
         <InvoiceRow>
              <ArticleIdentifier>123213123332123</ArticleIdentifier>
              <ArticleName>HUOLLON VUOSIMAKSU</ArticleName>
              <StartDate Format="CCYYMMDDHHMMSS">20020611000000</StartDate>
              <EndDate Format="CCYYMMDDHHMMSS">2003062011000000</EndDate>
              <RowShortProposedAccountIdentifier>9923</RowShortProposedAccountIdentifier>
              <RowNormalProposedAccountIdentifier>8823</RowNormalProposedAccountIdentifier>
              <RowAccountDimensionText>4500</RowAccountDimensionText>
              <RowVatRatePercent>22</RowVatRatePercent>
              <RowVatAmount AmountCurrencyIdentifier="EUR">11,00</RowVatAmount>
              <RowVatExcludedAmount AmountCurrencyIdentifier="EUR">50,00</RowVatExcludedAmount>
              <RowAmount AmountCurrencyIdentifier="EUR">61,00</RowAmount>
         </InvoiceRow>
         <EpiDetails>
              <EpiIdentificationDetails>
                   <EpiDate Format="CCYYMMDD">20020612</EpiDate>
                   <EpiReference>1</EpiReference>
              </EpiIdentificationDetails>
              <EpiPartyDetails>
                   <EpiBfiPartyDetails>
                        <EpiBfiIdentifier IdentificationSchemeName="BIC">OKOYFIHH</EpiBfiIdentifier>
                   </EpiBfiPartyDetails>
                   <EpiBeneficiaryPartyDetails>
                        <EpiNameAddressDetails>Pullin Kala</EpiNameAddressDetails>
                        <EpiAccountID IdentificationSchemeName="IBAN">FI1234567890123456</EpiAccountID>
                   </EpiBeneficiaryPartyDetails>
              </EpiPartyDetails>
              <EpiPaymentInstructionDetails>
                   <EpiRemittanceInfoIdentifier>8620741</EpiRemittanceInfoIdentifier>
                   <EpiInstructedAmount AmountCurrencyIdentifier="EUR">122,00</EpiInstructedAmount>
                   <EpiCharge ChargeOption="SHA">SHA</EpiCharge>
                   <EpiDateOptionDate Format="CCYYMMDD">20020628</EpiDateOptionDate>
              </EpiPaymentInstructionDetails>
         </EpiDetails>
    </Finvoice>

  • SOAP and java problem....create SOAPMessage from file

    Hi,
    I've got a problem related to usage of SOAP in Java. I receive a file containing SOAP message with XML attachment. I store it on hard disk.
    Then I create a SOAP message as it is shown in source code below.
    When I try to get the attachment, the method doesn't return anything.
    If I pass to method createMessage value null instead of new MimeHeaders(), the result is the same.
    What can be the problem? How to solve it? Any idea?
    Looking forward any support.
    BR,
    rafikoko
    MessageFactory factory = MessageFactory.newInstance();
    SOAPMessage message = factory.createMessage(new MimeHeaders(), new FileInputStream(xmlFile));
    Iterator attachments = message.getAttachments();
    log4j.error("TEST:before while:"+message.countAttachments());
    while(attachments.hasNext()){
    log4j.error("TEST:while");
    Object finvoice = attachments.next();
    log4j.error("TEST:Finvoice:"+finvoice);
    }

    I attach also a SOAP message. Perhaps it will help you.
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd">
    <SOAP-ENV:Header>
    <eb:MessageHeader xmlns:eb="http://www.oasis-open.org/committees/ebxml-msg/schema/msg-header-2_0.xsd"
    SOAP-ENV:mustUnderstand="1" eb:id="20030222133003285">
        <eb:From>
           <eb:PartyId>FI9859292720000267</eb:PartyId>
           <eb:Role>Sender</eb:Role>
        </eb:From>
        <eb:From>
           <eb:PartyId>OKOYFIHH</eb:PartyId>
           <eb:Role>Intermediator</eb:Role>
        </eb:From>
        <eb:To>
           <eb:PartyId>FI3329501800008512</eb:PartyId>
           <eb:Role>Receiver</eb:Role>
        </eb:To>
        <eb:To>
           <eb:PartyId>NDEAFIHH</eb:PartyId>
           <eb:Role>Intermediator</eb:Role>
        </eb:To>
    <eb:CPAId>yoursandmycpa</eb:CPAId>
    <eb:ConversationId>nnnnn</eb:ConversationId>
    <eb:Service>Routing</eb:Service>
    <eb:Action>ProcessInvoice</eb:Action>
    <eb:MessageData>
         <eb:MessageId>1</eb:MessageId>
         <eb:Timestamp>2003-01-22T11:12:12+02</eb:Timestamp>
         <eb:RefToMessageId/>
    </eb:MessageData>
    </eb:MessageHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
    <eb:Manifest eb:id="Manifest" eb:version="2.0">
    <eb:Reference eb:id="Finvoice" xlink:href="20020209-133003">
    <eb:schema eb:location="http://www.pankkiyhdistys.fi/verkkolasku/finvoice/finvoice.xsd" eb:version="2.0"/>
    </eb:Reference>
    </eb:Manifest>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!-- edited with XML Spy v4.2 U (http://www.xmlspy.com) by Jussi Paasikallio (OKOBANK Group) -->
    <!--Sample XML file generated by XML Spy v4.2 U (http://www.xmlspy.com)-->
    <!DOCTYPE Finvoice SYSTEM "Finvoice.dtd">
    <?xml-stylesheet type="text/xsl" href="Finvoice.xsl"?>
    <!--Finvoice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\l\finvoice\Finvoice.xsd" Version="1.0"-->
    <Finvoice Version="1.0">
         <SellerPartyDetails>
              <SellerPartyIdentifier>0123456-7</SellerPartyIdentifier>
              <SellerOrganisationName>Pullin Kala Oy</SellerOrganisationName>
              <SellerOrganisationTaxCode>0123456-7</SellerOrganisationTaxCode>
              <SellerPostalAddressDetails>
                   <SellerStreetName>Haapatie 7</SellerStreetName>
                   <SellerTownName>Helsinki</SellerTownName>
                   <SellerPostCodeIdentifier>00100</SellerPostCodeIdentifier>
                   <CountryCode>FI</CountryCode>
                   <CountryName>FINLAND</CountryName>
                   <SellerPostOfficeBoxIdentifier>PL 302</SellerPostOfficeBoxIdentifier>
              </SellerPostalAddressDetails>
         </SellerPartyDetails>
         <SellerContactPersonName>Hanna Paananen</SellerContactPersonName>
         <SellerCommunicationDetails>
              <SellerPhoneNumberIdentifier>050-5432659</SellerPhoneNumberIdentifier>
              <SellerEmailaddressIdentifier>[email protected]</SellerEmailaddressIdentifier>
         </SellerCommunicationDetails>
         <SellerInformationDetails>
              <SellerHomeTownName>Helsinki</SellerHomeTownName>
              <SellerVatRegistrationText>Alv.Rek</SellerVatRegistrationText>
              <SellerVatRegistrationDate Format="CCYYMMDD">19990321</SellerVatRegistrationDate>
              <SellerPhoneNumber>(09) 542 1222</SellerPhoneNumber>
              <SellerFaxNumber>(09) 542 2221</SellerFaxNumber>
              <SellerCommonEmailaddressIdentifier>[email protected]</SellerCommonEmailaddressIdentifier>
              <SellerWebaddressIdentifier>www.pullinkala.fi</SellerWebaddressIdentifier>
              <SellerAccountDetails>
                   <SellerAccountID IdentificationSchemeName="IBAN">FI1234567890123456</SellerAccountID>
                   <SellerBic IdentificationSchemeName="BIC">OKOYFIHH</SellerBic>
              </SellerAccountDetails>
              <SellerAccountDetails>
                   <SellerAccountID IdentificationSchemeName="IBAN">FI1234567890123456</SellerAccountID>
                   <SellerBic IdentificationSchemeName="BIC">NDEAFIHH</SellerBic>
              </SellerAccountDetails>
         </SellerInformationDetails>
         <BuyerPartyDetails>
              <BuyerPartyIdentifier>CL12221</BuyerPartyIdentifier>
              <BuyerOrganisationName>Kalakauppa Vilkkunen</BuyerOrganisationName>
              <BuyerPostalAddressDetails>
                   <BuyerStreetName>Haapatie 1</BuyerStreetName>
                   <BuyerTownName>Helsinki</BuyerTownName>
                   <BuyerPostCodeIdentifier>00211</BuyerPostCodeIdentifier>
                   <CountryCode/>
                   <CountryName/>
                   <BuyerPostOfficeBoxIdentifier/>
              </BuyerPostalAddressDetails>
         </BuyerPartyDetails>
         <BuyerContactPersonName>Maija Vikkunen</BuyerContactPersonName>
         <BuyerCommunicationDetails>
              <BuyerPhoneNumberIdentifier>(09)221222</BuyerPhoneNumberIdentifier>
              <BuyerEmailaddressIdentifier>[email protected]</BuyerEmailaddressIdentifier>
         </BuyerCommunicationDetails>
         <InvoiceDetails>
              <InvoiceTypeCode>INV01</InvoiceTypeCode>
              <InvoiceTypeText>LASKU</InvoiceTypeText>
              <OriginCode>Origin</OriginCode>
              <InvoiceNumber>1/2002</InvoiceNumber>
              <InvoiceDate Format="CCYYMMDD">20020612</InvoiceDate>
              <SellerReferenceIdentifier>212</SellerReferenceIdentifier>
              <OrderIdentifier>TI0988</OrderIdentifier>
              <InvoiceTotalVatExcludedAmount AmountCurrencyIdentifier="EUR">100,00</InvoiceTotalVatExcludedAmount>
              <InvoiceTotalVatAmount AmountCurrencyIdentifier="EUR">22,00</InvoiceTotalVatAmount>
              <InvoiceTotalVatIncludedAmount AmountCurrencyIdentifier="EUR">122,00</InvoiceTotalVatIncludedAmount>
              <ShortProposedAccountIdentifier>9922</ShortProposedAccountIdentifier>
              <NormalProposedAccountIdentifier>8822</NormalProposedAccountIdentifier>
              <AccountDimensionText>4500</AccountDimensionText>
              <VatSpecificationDetails>
                   <VatBaseAmount AmountCurrencyIdentifier="EUR">100,00</VatBaseAmount>
                   <VatRatePercent>22</VatRatePercent>
                   <VatRateAmount AmountCurrencyIdentifier="EUR">22,00</VatRateAmount>
              </VatSpecificationDetails>
              <PaymentTermsDetails>
                   <PaymentTermsFreeText>14 p�iv�� netto</PaymentTermsFreeText>
                   <PaymentOverDueFineDetails>
                        <PaymentOverDueFineFreeText>Yliaikakorko 16%</PaymentOverDueFineFreeText>
                        <PaymentOverDueFinePercent>16</PaymentOverDueFinePercent>
                   </PaymentOverDueFineDetails>
              </PaymentTermsDetails>
         </InvoiceDetails>
         <PaymentStatusDetails>
              <PaymentStatusCode>NOTPAID</PaymentStatusCode>
         </PaymentStatusDetails>
         <VirtualBankBarcode>250003210002229000122000000000000000862074102062800009</VirtualBankBarcode>
         <InvoiceRow>
              <ArticleIdentifier>123213123332123</ArticleIdentifier>
              <ArticleName>TUURA</ArticleName>
              <BuyerArticleIdentifier>1232321232332</BuyerArticleIdentifier>
              <DeliveredQuantity QuantityUnitCode="Kpl">10</DeliveredQuantity>
              <OrderedQuantity QuantityUnitCode="Kpl">10</OrderedQuantity>
              <UnitPriceAmount AmountCurrencyIdentifier="EUR" UnitPriceUnitCode="e/kpl">5,00</UnitPriceAmount>
              <RowIdentifier>221</RowIdentifier>
              <RowIdentifierDate Format="CCYYMMDD">20020611</RowIdentifierDate>
              <RowDeliveryDate Format="CCYYMMDD">20020615</RowDeliveryDate>
              <RowShortProposedAccountIdentifier>9922</RowShortProposedAccountIdentifier>
              <RowNormalProposedAccountIdentifier>8822</RowNormalProposedAccountIdentifier>
              <RowAccountDimensionText>4500</RowAccountDimensionText>
              <RowFreeText>Tuurat myyd��n varsien kanssa.</RowFreeText>
              <RowDiscountPercent>0</RowDiscountPercent>
              <RowVatRatePercent>22</RowVatRatePercent>
              <RowVatAmount AmountCurrencyIdentifier="EUR">11,00</RowVatAmount>
              <RowVatExcludedAmount AmountCurrencyIdentifier="EUR">50,00</RowVatExcludedAmount>
              <RowAmount AmountCurrencyIdentifier="EUR">61,00</RowAmount>
         </InvoiceRow>
         <InvoiceRow>
              <ArticleIdentifier>123213123332123</ArticleIdentifier>
              <ArticleName>HUOLLON VUOSIMAKSU</ArticleName>
              <StartDate Format="CCYYMMDDHHMMSS">20020611000000</StartDate>
              <EndDate Format="CCYYMMDDHHMMSS">2003062011000000</EndDate>
              <RowShortProposedAccountIdentifier>9923</RowShortProposedAccountIdentifier>
              <RowNormalProposedAccountIdentifier>8823</RowNormalProposedAccountIdentifier>
              <RowAccountDimensionText>4500</RowAccountDimensionText>
              <RowVatRatePercent>22</RowVatRatePercent>
              <RowVatAmount AmountCurrencyIdentifier="EUR">11,00</RowVatAmount>
              <RowVatExcludedAmount AmountCurrencyIdentifier="EUR">50,00</RowVatExcludedAmount>
              <RowAmount AmountCurrencyIdentifier="EUR">61,00</RowAmount>
         </InvoiceRow>
         <EpiDetails>
              <EpiIdentificationDetails>
                   <EpiDate Format="CCYYMMDD">20020612</EpiDate>
                   <EpiReference>1</EpiReference>
              </EpiIdentificationDetails>
              <EpiPartyDetails>
                   <EpiBfiPartyDetails>
                        <EpiBfiIdentifier IdentificationSchemeName="BIC">OKOYFIHH</EpiBfiIdentifier>
                   </EpiBfiPartyDetails>
                   <EpiBeneficiaryPartyDetails>
                        <EpiNameAddressDetails>Pullin Kala</EpiNameAddressDetails>
                        <EpiAccountID IdentificationSchemeName="IBAN">FI1234567890123456</EpiAccountID>
                   </EpiBeneficiaryPartyDetails>
              </EpiPartyDetails>
              <EpiPaymentInstructionDetails>
                   <EpiRemittanceInfoIdentifier>8620741</EpiRemittanceInfoIdentifier>
                   <EpiInstructedAmount AmountCurrencyIdentifier="EUR">122,00</EpiInstructedAmount>
                   <EpiCharge ChargeOption="SHA">SHA</EpiCharge>
                   <EpiDateOptionDate Format="CCYYMMDD">20020628</EpiDateOptionDate>
              </EpiPaymentInstructionDetails>
         </EpiDetails>
    </Finvoice>

  • Getting an Array complex Type From a SOAPMessage using SAAJ

    My question is can you do that?
    I was able to put together a properly formatted message for a .NET SOAP service, send it, and get the response (without Fault), but from the response
    SOAPMessage response = connection.call(message, endpoint);
    I don't see how to get the array, and I can't find any example on the web any where using SAAJ. It's not an attachment, because
    System.out.println("Number of attachments.... " + response.countAttachments() );
    gives me
    Number of attachments.... 0.
    Has anybody seen an example on how to do this? I haven't seen any docs on this been looking for two days.      

    Hello,
    It sounds like you want to get the body of that response SOAP Message. If i'm right then you should review the structure of a SOAP Message, it is something like..
    <Message>
    <Envelope>
    <Header></Header>
    <Body></Body>
    </Envelope>
    </Message>
    That structure is basically a one without attachments. To get the body, SAAJ gives you a method (i don't quite recall it now) something like response. getEnvelope().getBody() and inside Body you should get the values you asked for.
    Nonetheless, i'm gonna give you a great resource web page address... Good Luck!!!
    http://java.sun.com/webservices/docs/1.3/tutorial/doc/index.html
    JJ2O Venezuela

  • Setting Content-Type when posting a SOAPMessage

    Hi,
    I have to change the Content-Type header before I send the SOAPMessage. But when I try to do that with code similar to the one below, the old header is used anyway. Any solution?
    SOAPMessage msg = createSOAPMessage();
    MimeHeaders headers = msg.getMimeHeaders();
    headers.setHeader("Content-Type", headers.getHeader("Content-Type")[0] + additionalParameters);
    SOAPConnectionFactory scf = SOAPConnectionFactory.newInstance();
    SOAPConnection con = scf.createConnection();
    SOAPMessage reply = con.call(msg, "http://localhost:8080");

    I've found that when calling the saveChanges() method on a SOAPMessage instance that doesn't have any attachments, the 'Content-Type' header is set to 'text/xml; charset="utf-8"'. So what you should do is that you should be sure to set the 'Content-Type' header after any possible changes to the message have been saved.
    SOAPMessage msg = createSOAPMessage();// Modify message by adding elements...
    // Save the changes made to the message and then
    // change the "Content-Type" header...
    if (msg.saveRequired()) {
    msg.saveChanges();
    MimeHeaders headers = msg.getMimeHeaders();
    headers.setHeader("Content-Type",
    headers.getHeader("Content-Type")[0] +
    additionalParameters);
    SOAPConnectionFactory scf =
    SOAPConnectionFactory.newInstance();
    SOAPConnection con = scf.createConnection();
    SOAPMessage reply = con.call(msg,
    "http://localhost:8080");
    Hope this helps!
    BR
    Daniel

Maybe you are looking for

  • Will not open a document from a website in another tab.

    When I am trying to open a document from a website link, a new tab opens in the link but the document is not there, the screen is blank. This happen EVERY time. For example, I just wanted to print a coupon from a department store and I clicked on the

  • Error in updating Interactive form data

    Hi Friends, I have developed an interactive form using webdynpro ABAP, in the first view I have designed selection criteria based on the selection I am populating the table in second view. Few are editable fields and few are readonly fields. Here I g

  • CS6 asks for a serial number at every launch

    Why does Photoshop CS6 asks for a serial number at every launch

  • How to active iphone 5 locked with care phone company

    Hello I have iPhone 5, but the problem the device is lock by carephone UK because my friend he bought the device from there there is any solution to unlock the device because I'm now in the United Arab Emirates not in the United Kingdom Best regards

  • ME21N Problem while creating PO

    Hello, i m trying to create a PO but in that after entering plant it showing error " No procurement defined for material M-14 all procurement  is there i have already checked it. please help to solve that issue Thanks, Girish Goyal