Define Web Service - Send Asynchronous Message

Hi All,
I have to send an asynchronous message from a java web application to XI. For this I tried to used the Define Web Service option in XI. However the documentation says that this tool can be used only for Synchronous interfaces. Is this the case even now? What would be an alternate approach to accomplish this?
Thanks,
Sandeep

Hi,
As explained above , no need to have the webservice only in the case of Sync communication , you can also achieve this by way of generating the WSDL from ID -- tools and added the Quality of service = EO.
Please see the below links to get more details
ThirdPart(WebService) <=> XI <=> SAP(Async)
Check this SAP Help-
http://help.sap.com/saphelp_nw2004s/helpdata/en/48/d5a1fe5f317a4e8e35801ed2c88246/frameset.htm
Async  web service.
Communication between SAP System & Webservice Using Proxies - /people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
Also see the below links about webservices
/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
/people/siva.maranani/blog/2005/09/03/invoke-webservices-using-sapxi
/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2131 [original link is broken] [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295aeaa9
Regards
Chilla..
<i>Points rewarded if it is helpful..</i>

Similar Messages

  • Generating WSDL using Integration Directory (Tools-Define Web Service)

    Hi,
    I have tested the "Define Web Service" tool in Integration Directory - some question;
    1) It's a little bit frustrating to change the URL after clicking the "Propose URL" button - is it possible to configure somewhere the right URL
    http://<srv>:<port>/XISOAPAdapter/MessageServlet?channel=<party>:<service>:<cchannel>
    2) The generated WSDL is not according to the basic profile for WSDLs - wrong encoding="ISO-8859-1" - supposed to be "UTF-8"|"UTF-16" - is it possible to configure how the WSDL is generated?
    I'm not sure, but I think there is a issue related to the type of binding for a binding.
    3) A web service can consists of several methods - is there a tool for generating a WSDL for several interfaces?
    It's "boring" to manually copy-paste from several generated WSDLs to one main WSDL for a web service
    Anyway, by using XMLSpy and SoapScope, everything works just fine

    a single data type will refer to multiple data types data.
    You can refer one Data type in other Data Type but it wont be available under a  different root node.....the root node will the the DT name under which you are referring the other DTs......you can do this by:
    DT --> Give the appropriate name to a node --> While selecting the Type for this node select Data types --> select the DT from the list available....for this you should first include all the schemas in IR i.e. you should first create individual DTs by importing the schema (DT --> XSD --> Import Data Type Definition from File)
    You have a huge list of schemas!
    Regards,
    Abhishek.

  • Define Web Service as WSDL with Schemas

    Dear All,
    I would like to define Web Services by using XI/PI expose to consumer. Is it possible to define or separate the data type as schema (.xsd) from wsdl?
    Thank you.
    Regards,
    Weng

    a single data type will refer to multiple data types data.
    You can refer one Data type in other Data Type but it wont be available under a  different root node.....the root node will the the DT name under which you are referring the other DTs......you can do this by:
    DT --> Give the appropriate name to a node --> While selecting the Type for this node select Data types --> select the DT from the list available....for this you should first include all the schemas in IR i.e. you should first create individual DTs by importing the schema (DT --> XSD --> Import Data Type Definition from File)
    You have a huge list of schemas!
    Regards,
    Abhishek.

  • Tools.... Define Web service

    Hi
    Can anybody tell me the use of Tools....>Define Web service in ID ??
    Thanks
    kumar

    Hi Palnati,
    If you want you can use the How to guide for this purpose. It explains clearly about the steps involved in it and its very easy.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40611dd6-e66e-2910-f383-e80fb44f9cd4
    Follow the procedure as explained in it and tell me if any help is required.
    Thanks and Regards,
    Sanjeev.

  • Wcf web service send port retry?

    We are contacting external wcf web services. We don't control these services and they could be returning an exception for a short while (which is "ok"), so we need to retry for a given period of time, without suspending the orchestration/sendport.
    It used to be simple with web services (.asmx) since the send port would handle the retries as soon as an exception was returned from the web services. With wcf services and the soap fault, it is much more cumbersome.
    I know how to do it from an orchestration, but it does add a lot of clutter (have an extra "initialization" construct block so visual studio shuts up about the uninitialized message coming back from the wcf service, define documentspecnames in
    our case, define xpath expressions for the fault and the expected response, have a loop, a delay, more variables/expressions, scope, exception block, etc. etc.) for such a simple requirement. We need to contact a couple of wcf services in an orchestration
    and the handling of the retries makes it quite large and unfriendly (and this is mostly the retry logic for these wcf services).
    So, is there any way to have the send port adapter handle the retries when receiving an exception from a wcf service like it used to be with regular web services?

    Thanks for you answer, yes I understand that the SOAP fault is just another message and that I need to act accordingly in the orchestration. I'm not refuting that, I'm just looking for a better solution than the one I have now (which seems overly complicated
    to me).
    I have to specify the documentspecname because we use the built-in xmlreceive pipeline and the type of the exception that the wcf services return is standardized in our organisation... so there are many copies of the schema of this exception deployed on
    the servers. I need to specify the schema of the exception coming from my wcf reference in my assembly otherwise I get the "I can't find the right schema blabla" exception.
    Of course, if I can stop using the XMLReceive pipeline, I wouldn't have to specify the documentspecname... I'll have to research in detail what this pipeline is doing and see if I can replicate it's functionality, with the addition of the check for the error
    in the returned message.
    I just want to be sure before proceeding... If I raise an exception in a custom pipeline, the send port retry configuration would apply?

  • Define Web Services in XI and call Web Services from XI

    Xi guys,
    I want to create some Web services in XI that will do the following things:
    receive an XML message over SOAP (from BEA WebLogic), execute 2-3 calls to an external HTTP Web Server from which I will get a response, export a file into another system, and return the response to the WS client.
    As far as I know, I will have to create a Configuration scenario in XI that will contain all these steps (obviously with the help of BPM) and with the help of the Wizard, I will produce the WSDL, the function of which the Web service client will be able to call. I have some questions on that:
    a) Is there a way to define with XI only one Web Service that will contain 3-4 function to do different things? Or one Web Service corresponds to one Configuration scenario?
    b) Also do I need a Sender Agreement and a Sender SOAP communication channel?
    c) Is there a way to construct the WSDL before creating the configuration scenario? Because BEA WebLogic people need it to start development.
    Best Regards
    Evaggelos Gkatzios

    hi,
    a) Is there a way to define with XI only one Web Service that will contain 3-4 function to do different things?
         Or one Web Service corresponds to one Configuration scenario?
    b) Also do I need a Sender Agreement and a Sender SOAP communication channel?
      Ans:
         If you are create a SOAP communication channel and Sender Agreement then One WSDL used
         One Configuration scenario.Another configuration you need to create another WSDL.Because at the
         time of creating WSDL you need to give a service name and communication channel.
         If without communication channel(using proposal consept creating WSDL) you can use that various
         senarios if your sender structure is same.(this time WSDL have the pipeline address with help
         of  message interface  fine the mapping and gave the output).
         If you create with SOAP communication channel and Sender Agreement WSDL is more secure.
         with out communication channel is not a secure one.
         If you go with (without sender CC) you can create and gave a WSDL before Scenario.
         If you have sender CC then after creating a scenario only you can able to gave WSDL.
         If you are createing with sender cc then you need to give a URL
         [http://<host>:<port>/XISOAPAdapter/MessageServlet?channel=:SenderService:SenderCC]
    *Reward Points If Helpful*
    Regards,
    Prakasu

  • SAML2.0 for web services - sender-vouches scenario

    We would like to configure this scenario using SAML2.0 assertion tickets. We are on ECC 6 EhP6.
    Configuration in SAML2 has been completed - no WS security policy has been configured in order to support the sender-vouches scenario.
    WSS_SETUP has run to use SAML.
    When configuring the web services we are using https for transport and SAML for authentication - the wsdl generated in this case references SAML1.1 and as result we get an error of  Wrong token type received. Endpoint expects SAML 1.1 token.
    The question is: can SAML2.0 be used for sender-vouches scenarios or not?
    Any input or help would be greatly appreciated.
    Thank you,
    Miklos

    Hi Miklos,
    Yes you can use SAML2.0 for Sendor-vouches scenarios.
    Please see the below link for configuration process:
    http://help.sap.com/saphelp_nw73/helpdata/en/b5/014086933d4576bba1b4c7e9533f4b/content.htm
    I hope it will be helpful for you.
    Regards,
    Gourav
    Message was edited by: Gourav Kumar Jena

  • Difficulty in a Oracle SOA web-service with 2 message parts

    Hi,
    I am developing a web-service which should take 2 inputs - a string and a datetime. Also I have an xsd which I am importing into the wsdl to define the message elements.
    I have 2 options to do this:
    Option-1: Bundle these 2 input parameters into a single complex type in the xsd and then expose this complex-type as a single message part in the input message element. The wsdl operation tag then looks something like this:
    +<wsdl:message name="RetrieveLoVRecordsRequest">+
    +<wsdl:part name="part1" element="inp1:LoVInput"/>
    +</wsdl:message>+
    Option-2: Put these both these simple-types (the string & datetime inputs) in separate message parts. So wsdl operation looks like:
    +<wsdl:message name="RetrieveLoVRecordsRequest">+
    +<wsdl:part name="part1" element="inp1:LoVName"/>+
    +<wsdl:part name="part2" element="inp1:LoVEffectiveDate"/>+
    +</wsdl:message>+
    I need 2 wsdl interfaces with one with option-1 & other with option-2
    The web-service works fine in option-1. But for strange reason does not work correctly for option-2.
    In option-2 the 1^st^ difficulty was that after I coded the wsdl in jdeveloper and did not attach an explicit binding to it, the message-part part2 does not show-up at all in the enterprise manager when I go to the web-service test page. When opened the WSDL URL in the browser it indicated that the SOAP sytle/encoding as Document/literal. Perhaps that's what it dafults to when no explicit binding is specified. I got around this problem by explicitly specifying a RPC/literal binding in the WSDL in jdeveloper. This then showed-up the 2 parts distinctly in the EM test console.
    The 2^nd^ problem (which the main problem now) was that the web-service now started failing complaining about xsl transformation in the mediator
    +ORAMED-01201:[Error in transform operation]Error occurred while transforming payload using "{0}" for target part "{1}".Possible Fix:Review the XSL or source payload. Either the XSL defined does not match with the payload or payload is invalid.+
    Strangely I have correctly mapped the input & output parameters and the xsl is very simple having the 2 input parameters on the left being mapped to 2 corresponding parameters for the SQL where clause.
    And when I went to the EM dashboard to inspect the failure, the input payload did not show any input being passed to the xsl transform in the mediator. This is how the input looks
    +<message>+
    +<properties>+
    +<property name="tracking.compositeInstanceId" value="80053"/>+
    +<property name="tracking.ecid" value="f2d97d6a53d56c9f:-58326bb8:13e15e68aab:-8000-000000000000113d"/>+
    +<property name="transport.http.remoteAddress" value="10.110.173.159"/>+
    +</properties>+
    +<parts/>+
    +</message>+
    As you see above, the parts tag is blank; where it should contain part1 & part2
    To summarise, when I add an RPC/literal binding to the WSDL the input to the wsdl seems to get chopped off !
    Looking fwd to your help.
    -Sudripta
    Edited by: Sudripta on Apr 17, 2013 8:55 PM
    Edited by: Sudripta on Apr 17, 2013 9:05 PM

    Hi Boatseller,
    I will put this in simple way.
    Can we set properties in biztalk wcf_custom adaptor like 
    1. <security authenticationMode="UserNameOverTransport" 
    2. enableUnsecuredResponse="True" 
    or 
     includeTimestamp="false"
    3. <textMessageEncoding
    messageVersion="Soap11"/>
    <httpsTransport/>
    I am unable to find these properties in BizTalk wcf_custom adaptor properties. It will be great help if you could guide me in right direction . My problem is to receive response message into orchestration which is not having header. But the response is coming
    from web service. I saw that in fiddler.
    Also, If there is any steps to make these properties available in machine config, please share 
    Thanks in advance
    Vivek

  • Issue with - Consume Web Services in a Messaging Only Scenario

    Hello,
    I am trying to consume a Oracle - SOA web service in BizTalk.
    1. I followed the below MSDN post,
    http://msdn.microsoft.com/en-us/library/aa560545%28v=bts.70%29.aspx
    but I am getting "The custom tool 'BtsDiscoCodeGenerator' failed." error.
    2. Tried another approach like the below blog
    http://blogs.msdn.com/b/amantaras/archive/2010/03/03/consuming-a-web-service-in-a-non-orchestration-scenario.aspx
    In this case, I am getting this error
    "A message sent to adapter "SOAP" on send port "xxx" with URI "<<WSDL>>" is suspended.
     Error details: Failed to serialize the message part "ProcessPOAck1" into the type "ProcessPOAckType" using namespace "xxx". Please ensure that the message part stream is created properly. "
    I made sure there are no data type errors... I have copied the message to SoapUI and tested successfully. The message (output from BizTalk map) does not have soap envelop though. I had to copy
    the message in
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" <<some name spaces>>
       <soapenv:Header/>
       <soapenv:Body>
       </soapenv:Body>
    </soapenv:Envelope>
    tags to submit a request successfully.
    Any help in this regard is greatly appreciated.
    Thanks,
    Venkat.

    Why are you using the SOAP adapter instead of the WCF Adapter?  I think the only way to do that would be with some fairly heavy custom pipeline components. 
    Using the WCF Adapter, this is very easy - you just need to subscribe to the result message from the web service call - not a big deal, just play with the promoted properties and see what you have; normally SPName.  This can be sent to a file location
    with Overwrite set so that you never run out of disk space (if you don't care about the content response). 
    -Dan
    If this answers your question, please Mark as Answer

  • Web Services Sending Large Size Attachments - INTEROPERABILITY

    Hi
    I am really interested with Streaming attachments in OC4J.
    But I assume it is not interoperable.
    When I try to use Streaming for my Web Service, i get an error message that my JAX-RPC handler cannot unmarhall the WS operation (I know weird error).
    So it seems that if I want to use Streaming - I have to forget about JAX-RPC handlers (for example logging handler)
    Additionally when you open WSDL (of WS + Streaming) file you will see that there is a xml part which is not a WS-I standard:
    <sa:stream-attachments xmlns:sa="http://oracle.com/schemas/webservices/streaming-attachments" name="attachments"/>
    - and using wsi-test-tools you will get a failure message that it is not
    a part of standard namespace: http://schemas.xmlsoap.org/wsdl/soap/
    So i guess that client of a Web Service with Streaming must be a JAVA client - and additionally with a usage of oracle WS jar libraries.
    So there is a question now, how to enable in OC4J sending big attachments with Interoperability.
    I think using AXIS2 module is not an answer, as it also uses JAX-RPC approach based on DOM xml parsers, which means loading whole attachments into memory (no matter if its MTOM, SwA or Base64Encoding).
    My question is: IS THERE ANY WAY TO SEND LARGE ATTACHMENTS IN OC4J WITH FULL INTEROPERABILITY (maybe some chunk options)?
    Thanks a lot for any answer
    Jerzy

    I don't know of any way to do this from within Mail.app -- the Rules by default only are applied to incoming email & there is no way I know of to apply them to a new message you are composing.
    One (non-automatic) workaround you might find useful is to right or control click on any attachment not shown as an icon in your message & select "View as icon." This will at least show you the size of the attachment.

  • Web Service Logon Error Message

    Hi Experts,
                         I have created a web service and trying to consume it in SOAPUI but i am getting error saying that Logon Error Message .  when i see the Tcode  SOAMANAGER (Provider Security tab) i have this position i am not sure which one i need to choose .
    1.SSL over HHTP(Transport Channel Security) .
    2.Asymmetric Message Signature/Encyption.
    3.symmetric Message Signature/Encyption.
    and check box for secure Conversion.
    Your valuable answer will be helpfull
    Thanks,
    Devd

    Hi Murali,
    I guess SOAP UI does not support Symmetric Message Signature/Encryption or Secure Conversation easily. Both are rather complex message security mechanisms. They are seen as alternative to SSL when messages should travel along different SOAP intermediaries to have end 2 end encryption.
    You use case sounds that you just want to test security with SOAP UI. Assuming that SOAP UI supports SSL please choose SSL over HHTP(Transport Channel Security)
    in conjunction with the user id/password in message authencation.
    Then in SOAP UI try to find something like a username token. This is some part of XML SOAP UI adds to the SOAP message to send the username and the passwort.
    Regards,
    Mathias

  • Web Service Proxy Class: Message class does not recognize xs:restriction

    Hi,
    I have a use case where I need to consume a published web service. The request message of the published web service has quite a few elements which are defined using the xs:restriction tag. For example:
    <xs:element maxOccurs="1" minOccurs="0" name="EMPLID">
    <xs:annotation>
    <xs:documentation xml:lang="en">Empl ID</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="11"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    <xs:element maxOccurs="1" minOccurs="0" name="BIRTHDATE">
    <xs:annotation>
    <xs:documentation xml:lang="en">Date of Birth</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:date"/>
    </xs:simpleType>
    </xs:element>
    <xs:element maxOccurs="1" minOccurs="0" name="BIRTHPLACE">
    <xs:annotation>
    <xs:documentation xml:lang="en">Birth Location</xs:documentation>
    </xs:annotation>
    <xs:simpleType>
    <xs:restriction base="xs:string">
    <xs:maxLength value="30"/>
    </xs:restriction>
    </xs:simpleType>
    </xs:element>
    The problem is that the message class that is generated for the request message does not create properties for these elements. Hence no accessor methods are generated either. This makes it impossible to set the message data. Unless I guess we code the entire thing manually.
    Does anyone know of a better workaround ?

    Looks like this was a false alarm. There were some issues with the message schema.
    Sorry for the confusion.

  • BizTalk Server 2013 R2 Orchestration as web service with untyped messages.

    Hi,
    I have created an orchestration in BizTalk server 2013 R2 which receives and send untyped messages to an public Request-Response port. And am trying to publish this orchestration as web service, am getting "Object reference not set to an instance"
    error in the Publish Web service wizard. I didn't find any error details in event viewer.
    Please let me know what is the issue with this and how resolve this.
    Thanks,
    Praveen
    Praveen

    "Object reference not set to an instance" issue +Orchestration as WCF service + BizTalk
    2013 R2 ..has no relation.
    Just created an Orchestration, which would accept XMLDocument as input (Request) message and output (Response) message in both BizTalk 2013 and also in 2013 R2. 
    I can expose the Orchestration as WCF service without any issues as mentioned here and can able to send and get any XMLDocument to this server (Which is an Orchestration) 
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Multiple web service calls - Split message,1 WS call for each message

    Friends,
    We have designed a BPM which will pick the files, make web service call and merge these message structures and map them to the target.
    We have to modify this design as follows,
    We have to split the message based on purchase order number, meaning one message for each order number and then we need to make a web service call for each of them,after we get all the responses we will merge the files using transformation. (merging files and transformation is already taken care, its the web service part which iam looking for)
    Thanks in advance for all your help/ideas.

    Friends,
    Can you please help me out with this logic? Thanks!

  • Web service send help

    I have a problem that I hope has a simple answer, but I
    cannot for the life of me figure it out, hopefully someone out
    there can help me!
    I am accessing the following section of a wsdl:
    <s:element name="Login">
    <s:complexType>
    <s:sequence>
    <s:element minOccurs="0" maxOccurs="1" name="sUserName"
    type="s:string"/>
    <s:element minOccurs="0" maxOccurs="1"
    name="sUserPassword" type="s:string"/>
    <s:element minOccurs="1" maxOccurs="1"
    name="enIdentifier" type="tns:EnLoginIdentifiers"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:simpleType name="EnLoginIdentifiers">
    <s:restriction base="s:string">
    <s:enumeration value="User"/>
    <s:enumeration value="Manager"/>
    </s:restriction>
    </s:simpleType>
    So I make the call with:
    myWS.Login("userIDgoeshere","passwordgoeshere", ???)
    I am at a loss for what to put for ???, if it were a complex
    data type, I could use a dto to send the correct value over, but
    with this setup I am stumped. (And no, I can't just change the
    WSDL, it's out of my hands, unfortunately)
    If anyone could give an example how to make this work I would
    be very grateful, and if there is any other information I can give
    to clarify my issue, please let me know!
    Thanks in advance for any help!

    We need observe the security classification of the service, if it isn’t a risk maybe you don’t need authentication.
    However if security is needed, you can user a rule like that: With your service is a process service you should use authentication and authorization, but with your web service is a simple search (small granularity) you can attribute the rights to the web server (consumer) using a certified (x-509 for example).

Maybe you are looking for

  • Problem setting up WDS with MSI RG54GS2 & Motorola WR850g

    Problem setting up WDS with WR850g & MSI RG54GS2 Hi, I'm trying to bridge 2 routers: Motorola WR850g & MSI RG54GS2 . I set the MSI as the main router (it works better for me as a router than the Moto), and the Moto is the repeater. I have set it up e

  • Updating for LAG 4 owners

    -Does anyone know, officially, if there is a way to step-upgrade from LAG 4 (pc) to Logic Pro or Logic Express and not have to pay full price (or more?) -Is it still possible to buy a LAG 4 to LAG 5 upgrade from emagic or apple, then upgrade to Pro?

  • Report cost center/cost element in Business Warehouse

    I have report in SAP CO including: rows - cost centers / cost elements; columns - periods /months/, created using trans GRR1; I need the report including: rows - cost centers / cost elements; columns - divisions /that are defined in cost centers - 20

  • Blank or partially blank pdf documents

    I have a problem when receiving pdf documents, mostly from Asia region. When I open them, there is usually a header or a few lines and the rest of the document is blank. I have installed the language characters add ons and such, but still have this p

  • Itunes stops before backup is complete

    hey, when ever i plug my ipod touch into my computer, itunes begins to sync my ipod touch. it then begins to backup my ipod but before it finishes, itunes stops..  then closes. i cant put  new music, videos,apps, books or anything on my ipod. i also