Message style webservice WLS6.1SP5

Hi there,
I have implemented a message style webservice that sends data to a soap client.
In my tests, the java client works fine, but the .NET client looses messages.
On the client side I invoke receive on both clients, but the .NET client seems
to close the connection between subsequent calls and looses the message (This
is my guess because the number of subscribers is increasing with subseq. calls).
What am I missing?
Thanks
Juerg

I did some more investigation and have analyzed what a .NET clients sends and what
a Java Client sends:
Here are the results:
JAVA CLIENT
=========
POST /WebServices/serverPush HTTP/1.1
SOAPAction: "urn:receive"
Content-Type: text/xml; charset=utf-8
User-Agent: Java1.3.1_01
Host: localhost:8080
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive
Content-length: 490
<?xml version='1.0' encoding='UTF-8'?><SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'
xmlns:SOAP-ENC='http://schemas.xmlsoap.org/soap/encoding/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'><SOAP-ENV:Body><ns1:receive xmlns:ns1='urn:serverPushWS'
SOAP-ENV:encodingStyle='http://xml.apache.org/xml-soap/literalxml http://schemas.xmlsoap.org/soap/encoding/'></ns1:receive></SOAP-ENV:Body></SOAP-ENV:Envelope>
JAVA CLIENT HEADER
===============
<HTTPHeaders><authorization>Basic bnVsbDpudWxs</authorization><user-agent>Java1.3.1_01</user-agent><host>localhost:8080</host><accept>text/html,
image/gif, image/jpeg, *; q=.2, */*; q=.2</accept><connection>keep-alive</connection></HTTPHeaders>
.NET CLIENT MESSAGE
===============
<?xml version="1.0" encoding="utf-8" ?>
- <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:tns="urn:local" xmlns:types="urn:local/encodedTypes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<q1:receive xmlns:q1="urn:serverPushWS" />
</soap:Body>
</soap:Envelope>
.NET CLIENT HEADER
==============
- <HTTPHeaders>
<user-agent>Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol
1.0.3705.0)</user-agent>
<content-type>text/xml; charset=utf-8</content-type>
<soapaction>"urn:receive"</soapaction>
<content-length>468</content-length>
<expect>100-continue</expect>
<connection>Keep-Alive</connection>
<host>localhost</host>
</HTTPHeaders>
The only maor difference that I see, is that the Java client also sends a HTTP
header. Could this make the difference?
Please help
Juerg
"Juerg Staub" <[email protected]> wrote:
>
Hi there,
I have implemented a message style webservice that sends data to a soap
client.
In my tests, the java client works fine, but the .NET client looses
messages.
On the client side I invoke receive on both clients, but the .NET client
seems
to close the connection between subsequent calls and looses the message
(This
is my guess because the number of subscribers is increasing with subseq.
calls).
What am I missing?
Thanks
Juerg

Similar Messages

  • Message style WebService

    Using weblogic webservicesExamples for the Message style web service I'm not able to see the Message Receive web service on the examples console messageexample web service comes
    Why is so
    Regards
    Shalini
    [att1.html]
    [tech.gif]

    Problem solved when I set the timeout in the wsgen generated ear/war/web.xml. Setting
    the timeout via console was the problem.
    Thanks
    Juerg
    "Juerg Staub" <[email protected]> wrote:
    >
    Hello,
    I am successfully using message style webservices on WLS6.1SP5 with .NET
    clients.
    One remaining problem I have is, that even when I shutdown all of my
    clients,
    the servlet sessions on the server never disapear (which is causing an
    OutOfMemory
    exeception finally). I have set the session timeout to 1 minute via the
    console,
    with no success.
    Thanks
    Juerg

  • Multipart message in Webservice.

    Hello,
    I am calling a webservice which is having multipart message as follows:
    - <wsdl:message name="PricingAndAvailabilityRequest">
      <wsdl:part name="PricingAndAvailabilityRequestBody" element="pa:PricingAndAvailability" />
      <wsdl:part name="header" element="ebxml:MessageHeader" />
      </wsdl:message>
    - <wsdl:message name="PricingAndAvailabilityResponse">
      <wsdl:part name="PricingAndAvailabilityResponseBody" element="par:PricingAndAvailabilityResponse" />
      <wsdl:part name="header" element="ebxml:MessageHeader" />
      </wsdl:message>
    - <wsdl:portType name="PricingAndAvailabilityServicePort">
    - <wsdl:operation name="PricingAndAvailability">
      <wsdl:input message="avl:PricingAndAvailabilityRequest" />
      <wsdl:output message="avl:PricingAndAvailabilityResponse" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="PricingAndAvailabilityServiceBinding" type="avl:PricingAndAvailabilityServicePort">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="PricingAndAvailability">
      <soap:operation soapAction="" />
    - <wsdl:input>
      <soap:body parts="PricingAndAvailabilityRequestBody" use="literal" />
    - <soap:header message="avl:PricingAndAvailabilityRequest" part="header" use="literal">
      <soap:headerfault use="literal" part="header" message="avl:PricingAndAvailabilityRequest" />
      </soap:header>
      </wsdl:input>
    - <wsdl:output>
      <soap:body parts="PricingAndAvailabilityResponseBody" use="literal" />
    - <soap:header message="avl:PricingAndAvailabilityResponse" part="header" use="literal">
      <soap:headerfault use="literal" part="header" message="avl:PricingAndAvailabilityResponse" />
      </soap:header>
      </wsdl:output>
      </wsdl:operation>
      </wsdl:binding>
    When i am sending the message to Webservice, After mapping,Request message is having Header and body together.
    I would like to know whether  xi soap receiver adapter able to include Header in SOAP-HEADER and Body in SOAP-BODY as shown in wsdl definiton and will it support multipart messages.
    Thanks in Advace.
    Regards,
    Sreenivas.

    I would like to know whether xi soap receiver adapter able to include Header in SOAP-HEADER
    and Body in SOAP-BODY as shown in wsdl definiton and will it support multipart messages
    there is a piece of information given in SAP note for this....check if you can get some lead from it:
    https://service.sap.com/sap/support/notes/856597
    From the SAP note:
    My web service expects a SOAP with multiple elements in the SOAP body. How can I create such SOAP message?
    Regards,
    Abhishek.

  • J2ME + message style "rpc/encoding"

    Hi,
    I have a web services with message style "rpc/encoded" and i need consume this web service from a J2ME app. I wrote in the J2ME help that is impossible because it supports the "document/literal" style. How can i call this methods? Is it possible?
    Thanks.
    Bruno

    Rajesh -
    Thanks, that is what I was looking for. Do you know if the sample client
    code follows JAX-RPC? Or is this special API developed for Workshop web
    services?
    Thanks,
    Pat
    "Rajesh Mirchandani" <[email protected]> wrote in message
    news:[email protected]..
    If you look into the test view you will find a link for a java proxy(click the
    "overview" tab and the the "Java Proxy" tab.). If you copy and paste thatcode
    into a java client or a servlet you should be able to invoke the webservice.
    >
    Let me know if you need an example.
    Pat Regan wrote:
    It seems to me that, under the hood, a session bean is always the first
    component called in a Workshop created web service. If this is the
    case,
    then would a Java client always use the JAX-RPC api to call it? Evenfor an
    asynchronous web service? Does anyone have an example Java Client that
    invokes a Workshop created web service?
    Thanks,
    Pat--
    Rajesh Mirchandani
    Developer Relations Engineer
    BEA Support

  • Example for message-style with Message Driven Bean

    hi,
    Can i have some examples of webservices message-style with
    MDB?....
    thanks

    The current version of the white-paper that Raffi
              refers to covers through 7.0. For 8.1 see also
              http://edocs.bea.com/wls/docs81/ConsoleHelp/jms_config.html#accessing_foreign_providers
              and
              http://edocs.bea.com/wls/docs81/jms/j2ee_components.html
              these features can often make integration easier.
              Tom
              Raffi wrote:
              > Doug,
              >
              > You can find very detailed information on this topic at the link below. All
              > you need to do is specify the destination-jndi-name, initial-context-factory,
              > provider-url, and connection-factory-jndi-name in weblogic-ejb-jar.xml for the
              > non-BEA JMS provider for that specific MDB.
              >
              > ftp://edownload:[email protected]/pub/downloads/jmsproviders.pdf
              >
              > Hope that helps!
              >
              > Raffi
              >
              > Doug Chew <[email protected]> wrote:
              >
              >>Can someone give me an example on how to setup a message driven bean
              >>with a foreign JMS provider using the foreign JMS provider's implementation
              >>of a connection factory. i.e. binding the foreign JMS provider's connection
              >>factory to the JNDI tree.
              >>
              >>Thanks
              >
              >
              

  • 'Payload not Serializable' with custom WSDL data types in message-style web service

    I'm implementing a message-style web service which publishes to a JMS Queue.
    I had the web service built and deployed, but noticed that the "sendRequest" message's
    part was of type "xsd:anyType." This is not specific enough for our interface,
    since it is externally facing and needs to describe the object we're expecting
    on the back end.
    So I replaced xsd:anyType with mynamespace:MyType, which is defined as a complex
    type in the same WSDL document.
    My problem is that when I test the web service with the new WSDL (using the client.jar),
    I get a server-side exception from the DestinationSendAdapter.doPost() method.
    The exception reads:
    javax.servlet.ServletException: Payload not Serializable
    at weblogic.soap.server.servlet.DestinationSendAdapter.doPost(DestinationSendAdapter.java:129)
    The domain object ('classic' JavaBean) that it should map to on the server side
    extends a class that implements Serializable, so it should inherit the trait.
    So my questions are:
    1) Did I properly go about trying to restrict the object type that gets sent to
    my Destination?
    2) If no, what is the correct way? If yes, why am I receiving the Payload not
    Serializable error if the domain object implements Serializable?
    Thanks in advance.

    Resolved:
    Apparently this is the right approach, as it boiled down to a classpath issue
    on the client-side. Thanks anyway.

  • Message driven bean and message style web service

    Hi,
    I'm trying to deploy a message style web service with a message driven EJB as
    the receiver and am getting the following exception:
    <Jan 22, 2002 10:51:06 AM PST> <Warning> <EJB> <MessageDrivenBean threw an Exception
    in onMessage(). The exception was:
    java.lang.ClassCastException: weblogic.jms.common.ObjectMessageImpl
    java.lang.ClassCastException: weblogic.jms.common.ObjectMessageImpl
    at credit.message.PostDefaultPayment.onMessage(PostDefaultPayment.java:24)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:254)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    public void onMessage(Message message) {
    System.out.println("onMessage");
    TextMessage textmessage = (TextMessage)message. // It is throwing
    the exception on this line --looks pretty normal
    Has anyone seen this before? Am I missing something?
    Thanks,
    Tim

    Hi Tim,
    I think the problem is that you are assuming that the data type, of the message
    argument to the onMessage(Message message) method in your MDB, is of type TextMessage.
    I agree that this seems logical, especially since you passed "a string" to the
    Message-style Web Service. However, this is not the case, because the WSDL uses
    the "xsd:anyType" as the data type for any argument you pass to the send() method
    ;-) This maps to a java.lang.Object in the WebLogic Web Services implementation,
    which is why you get the casting error. Try this instead:
    public void onMessage(Message msg)
         try
              String msgText;
              ObjectMessage objMessage = (ObjectMessage)msg;
              msgText = (String)objMessage.getObject();
    System.out.println("[PostDefaultPayment.onMessage(Message)] msgText=" + msgText);
    System.out.println("[PostDefaultPayment.onMessage(Message)] msg.getJMSType()="
    + msg.getJMSType());
    System.out.println("[PostDefaultPayment.onMessage(Message)] msg.getJMSCorrelationID()="
    + msg.getJMSCorrelationID());
    System.out.println("[PostDefaultPayment.onMessage(Message)] msg.getJMSMessageID()="
    + msg.getJMSMessageID());
         catch(Exception e)
    e.printStackTrace();
    Regards,
    Mike Wooten
    "Tim Uy" <[email protected]> wrote:
    >
    Hi,
    I'm trying to deploy a message style web service with a message driven
    EJB as
    the receiver and am getting the following exception:
    <Jan 22, 2002 10:51:06 AM PST> <Warning> <EJB> <MessageDrivenBean threw
    an Exception
    in onMessage(). The exception was:
    java.lang.ClassCastException: weblogic.jms.common.ObjectMessageImpl
    java.lang.ClassCastException: weblogic.jms.common.ObjectMessageImpl
    at credit.message.PostDefaultPayment.onMessage(PostDefaultPayment.java:24)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:254)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    public void onMessage(Message message) {
    System.out.println("onMessage");
    TextMessage textmessage = (TextMessage)message. // It
    is throwing
    the exception on this line --looks pretty normal
    Has anyone seen this before? Am I missing something?
    Thanks,
    Tim

  • Document style webservice

    Hello
    I have created a document style webservice, the method signature takes Element as argument and returns elements back. ( i guess this is the limitation of using Document Style Web Service, as I would have rather prefered to have a complex type JAVABEAN as an argument)
    Now going ahead, i have deployed this service to OC4J server and when I create the Stub at the client side, the return type of the method gets convered to Vector instead of Element.
    Can anyone help me out how to get the Element return type back at the stub end.
    Any help will highly be appreciated.
    Also is there is a way to create a complex type Webservice using Document style ?
    prab

    Hello,
    It is possible with OracleAS 10.1.3 out of the box.
    Which release are you using?
    Regards
    Tugdual Grall

  • RPC Style webservice

    Hi Experts,
    Could you please tell how to create RPC Style webservice from XI or SAP R/3 System?
    Regards
    Sara

    Hi Sara !
    Are you talking about this:
    /people/community.user/blog/2006/10/24/exposing-bapi-as-web-services-through-sap-xi
    Regards,
    Matias

  • How can I change the MESSAGE STYLE for messages?

    My customer complains about the big "X", as well as he thinks it's an error instead of a just message or note.
    so my question is how do i change the message style then?

    You only get that when you have two or more consecutive messages. Try to avoid that is one option.
    You can change the icon if you want. Create another icon, call it stop.ico and put it in the icons directory (as indicated by UI_ICON). However, if you have a STOP alert, the icon changes for that alert too.
    Note: this is for Developer 6i. In 9i you cannot use ico files. Use gif files instead and put the image in the image jar file (found in OH/forms90/java directory). Since you see a big X, I believe you are using 6i.

  • RPC/encoded style webservice

    Hi Experts,
    How to expose RPC/encoded style webservices from XI? As far as I know, we can expose Document literal style webservice from PI7.0.
    Could you please tell me, for this question where I can get the exact answer?
    Regards
    Sara

    Hi,
    please go through below links
    Using XML-RPC in NetWeaver
    /people/sap.user72/blog/2004/09/23/using-xml-rpc-in-netweaver
    External Data Loads for CRM 4.0 using XIF adapter
    /people/stephen.johannes/blog/2005/08/18/external-data-loads-for-crm-40-using-xif-adapter
    XML-RPC protocol and XIF Adapter
    XML-RPC protocol and XIF Adapter
    Thanks
    Swarup

  • Message Style Web Serivce Example

    Hi,
    Am trying the run the message style web service example that comes along
    with weblogic server.
    As per the documentation, I created a JMS connection factory and JMS topic,
    with the JNDI names
    as given in the documentation.
    I built the example using ant, and that worked successfully. It created an
    ear file, which I deployed successfully
    in the weblogic server.
    Now when I am testing the example, I run the Consumer client first and then
    run the Producer client.
    Now the problem is that the message is delivered sometimes and sometimes its
    not delivered.
    Also when I run more that one instance of Consumer client, the behaviour is
    unpredicatable, the message is sometimes
    delivered to all consumers, sometimes, to one consumer and sometimes to
    none.
    I checked the 'Montior JMS Destination' on the weblogic console, and it
    shows the correct no of messages,
    but it also shows some Bytes Pending.
    Am not sure, what could be the reason for this. Can someone please help me
    on this.
    Thanks
    Amit

    I have an open ticket with BEA regarding this issue. The problem is in that this
    type of WS in WebLogic implementation works incorrect with JMS. In particular,
    the Servlet generated on the server does not disconnect itself from the JMS. New
    client causes a new JMS connection. If you deal with JMS Queue and accidentally
    produce more than one "listeners", the JMS decides which listener would be granted
    the message. That's why you get messages randomly.
    The second problem that I've found is that message-style WS capable to receive
    messages that sent only by message-style WS. In my tests, the messages were sent
    by regular sender ( see WLS Examples for topic and queue ) while the message-style
    WS was the listener, i.e. implemented "receive" method. This WS did not get any
    messages sent by regular sender but always got messages sent by another WS ( to
    the queue or to the topic, did not matter ).
    I've decided to write my own message-style WS instead of BEA's implementation
    finally.
    -Michael
    "Amit" <[email protected]> wrote:
    Hi,
    Am trying the run the message style web service example that comes along
    with weblogic server.
    As per the documentation, I created a JMS connection factory and JMS
    topic,
    with the JNDI names
    as given in the documentation.
    I built the example using ant, and that worked successfully. It created
    an
    ear file, which I deployed successfully
    in the weblogic server.
    Now when I am testing the example, I run the Consumer client first and
    then
    run the Producer client.
    Now the problem is that the message is delivered sometimes and sometimes
    its
    not delivered.
    Also when I run more that one instance of Consumer client, the behaviour
    is
    unpredicatable, the message is sometimes
    delivered to all consumers, sometimes, to one consumer and sometimes
    to
    none.
    I checked the 'Montior JMS Destination' on the weblogic console, and
    it
    shows the correct no of messages,
    but it also shows some Bytes Pending.
    Am not sure, what could be the reason for this. Can someone please help
    me
    on this.
    Thanks
    Amit

  • Message style & attachment

    I am able to create a message style service which send a string to MDB. But I could
    not find any example or documentation for attachments. Does anybody has any sample
    code,pseudo code,any pointers????
    If I send a org.w3c.dom.Document object to JMS & my MDB will get an ObjectMessage
    object from JMS topic. How do I convert it to org.w3c.dom.Document?

    Never did get it working.

  • Message Style Web Services

    Could u please suggest me some examples for Message Style web services other than the sample example provided with weblogic

    Could u please suggest me some examples for Message Style web services other than the sample example provided with weblogic

  • Using message-style web service by a Microsoft client

    Does anyone have a sample Microsoft client using message-style web service? BEA
    does not provide one. I found MS client does not receive messages published between
    2 calls to method "receive", while the sample Java client ConsumerClient.java
    does.
    ConsumerClient.java is like:
    while(true){
    Object result = method.invoke(null);
    sleep(20000); // not in sample, added for my test
    System.out.println(result);
    My VBScript code is like:
    Set SC = CreateObject("MSSOAP.SoapClient")
    SC.mssoapinit "http://localhost:7001/msg/Receiver/Receiver.wsdl", "", "", ""
    While TRUE
    Res = SC.receive
    WScript.echo "Res = " & Res     
    Res = ""
    ' do something that takes 20 seconds
    Wend
    I added 20 seconds between calls so I can publish a message between 2 calls. I
    found the Java client receives the message but the VBScript client doesn't. Has
    anyone else observed this?

    Hi Kevin,
    Thanks for your feedback.
    Header support is planed for the next major release.
    regards,
    -manoj
    Kevin Jiang wrote:
    Hi Manoj,
    Can you use SOAP header to pass session id accross instead of HTTP header? MS
    SOAP toolkit 2.0 support access to SOAP header.
    My app needs to use topic instead of queue. But as I said earlier, I can use MS
    XML toolkit to access HTTP header. So I have a work around.
    Thanks for all your responses with regard to this question!
    Kevin
    manoj cheenath <[email protected]> wrote:
    Hum! i thought you were not able to receive message at all. now
    i understood the problem. yes we are using http header to pass
    session id accross, in the case of web service client who wants
    to subscribe to JMS topics. I cant think of any other way to do
    this. if you have any suggestions, i very much like to hear it.
    for your application is it possible to use queues instead of topics?
    we do not use http session information in the case of JMS queues.
    -manoj
    Kevin Jiang wrote:
    Hi Manoj,
    Your sample code is basically same as mine. It would also lose messagespublished
    between calls to "receive" method.
    I figured out what's going on. Undocumented by BEA, the web servicesends JMS
    session ID in HTTP header along with first message. When client makessubsequent
    calls to "receive", this ID must be sent back. I found this by usinga SOAP trace
    tool.
    Unfortunately, MS SOAP toolkit doesn't support access to HTTP header.So one has
    to use MS XML toolkit to use message-style web service, when writingMS clients.
    manoj cheenath <[email protected]> wrote:
    an example of using message style web services with
    ms soap toolkit is attached. let me know if this works
    for you.
    regards,
    -manoj
    Kevin Jiang wrote:
    Hi Manoj,
    I just changed anyType to string and the problem still happens.
    Thanks,
    Kevin
    manoj cheenath <[email protected]> wrote:
    I have not tryed message style web services with MS soap toolkit.
    I think the problem is because the WSDL for the message style
    web service use xsd:anyType as the return type and MS soap is
    not able to understand it. can you pls modify the xsd:anyType to
    xsd:string (or someother base type) in the WSDL.
    SC.mssoapinit can load wsdl stored as a local file. so it should
    be easy to make this change.
    regards,
    -manoj
    Kevin Jiang wrote:
    Does anyone have a sample Microsoft client using message-style
    web
    service? BEA
    does not provide one. I found MS client does not receive messages
    published
    between
    2 calls to method "receive", while the sample Java client ConsumerClient.java
    does.
    ConsumerClient.java is like:
    while(true){
    Object result = method.invoke(null);
    sleep(20000); // not in sample, added for my test
    System.out.println(result);
    My VBScript code is like:
    Set SC = CreateObject("MSSOAP.SoapClient")
    SC.mssoapinit "http://localhost:7001/msg/Receiver/Receiver.wsdl",
    While TRUE
    Res = SC.receive
    WScript.echo "Res = " & Res
    Res = ""
    ' do something that takes 20 seconds
    Wend
    I added 20 seconds between calls so I can publish a message between2 calls. I
    found the Java client receives the message but the VBScript clientdoesn't. Has
    anyone else observed this?

Maybe you are looking for

  • Lack of email sync with Outlook may result in returned BB Classic

    Our company president (who is responsible for 15 companies worldwide) recently got a BB Classic and we were extremely disappointed to find a lack of either an "auto-bcc on send" option or a way to sync her email in the hub to Outlook 2013. I was led

  • Multiple users-one computer

    We have 2 people with iPhones trying to sync iTunes on the same computer. How do we set up separate accounts so only my calendar, contacts, songs, etc. will sync to my phone and the same for the other family member

  • Very new to ARD. Quick question re: Cannot connect to client

    I will try to be brief here. I have a MacBookPro running ARD 3. I stay in conntact with my 86 year old mom with iChat and have controlled her emac with ARD 2.2 in the past. She has moved to a new home and nothing changed on her machine. I upgraded to

  • Missing files in new (J2SE) 1.4.1_01

    Hello: I am having some problems downloading the JAVA development kit. I have tried it once and saved the JDK.exe file to my computer.I then proceeded to extract the .exe file and sent everything to a default folder called j2sdk1.4.1_<01> . According

  • How to Change ASP form Layout?

    Hi, I am trying to create an Asp.net form. but all the buttons are stuck with each other I cannot move them simple by draging them and put them any where on the form where I want, in the design pane. How will i change this layout? Azwar