<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: Calling WCF Webservice From MII not using Webservice Action block in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793995#M39066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you like, you can setup a webex session and i can take a look. did you sniffe with the tcptrace?&lt;/P&gt;&lt;P&gt;i will be available 2 hours from now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Mar 2011 21:36:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-25T21:36:30Z</dc:date>
    <item>
      <title>Calling WCF Webservice From MII not using Webservice Action block</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaq-p/7793992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MII 12.1  SP 7 here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an application where I need to call a webservice runing as self hosted Windows Communication Foundation application (No IIS).  I can't use the BLS webservice action block because I need to dynamically assign the destination (the WCF program is running on several computers, any of which I need to send data to)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have my wdsl structure, and using the webservice action block I can call the WCF program successfully, however since this destination of this action block cannot be parameterized (SAP COULD WE FIX THIS PLEASE???)  My alternative is to use the HTTP post action.     The WCF program is using basicHttpBinding.   And I can successfully send information to it manually using a program like SoapUI.  &lt;/P&gt;&lt;P&gt;Posting data like this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
POST &amp;lt;a href="http://TestClient:8090/FileSave/FileSaver" TARGET="test_blank"&amp;gt;http://TestClient:8090/FileSave/FileSaver&amp;lt;/a&amp;gt; HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://tempuri.org/IFileSaver/FileSave"
User-Agent: Jakarta Commons-HttpClient/3.1
Host: TestClient:8090
Content-Length: 470
&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"&amp;gt;
   &amp;lt;soapenv:Header/&amp;gt;
   &amp;lt;soapenv:Body&amp;gt;
      &amp;lt;tem:FileSave&amp;gt;
         &amp;lt;!--Optional:--&amp;gt;
         &amp;lt;tem:FileName&amp;gt;Test.txt&amp;lt;/tem:FileName&amp;gt;
         &amp;lt;!--Optional:--&amp;gt;
         &amp;lt;tem:FilePath&amp;gt;/Temp/&amp;lt;/tem:FilePath&amp;gt;
         &amp;lt;!--Optional:--&amp;gt;
         &amp;lt;tem:FileData&amp;gt;VGhpcyBpcyBhIHRlc3Q=&amp;lt;/tem:FileData&amp;gt;
      &amp;lt;/tem:FileSave&amp;gt;
   &amp;lt;/soapenv:Body&amp;gt;
&amp;lt;/soapenv:Envelope&amp;gt;

{Code}

My content type is text/xml   encoding is UTF-8   What I can't seem to quite get is how to send  SOAPAction: "http://tempuri.org/IFileSaver/FileSave"   as post parameter since my content type is txt/XML   Normally I would have it as 

SOAPAction="http://tempuri.org/IFileSaver/FileSave"

Also it seems that the post action wants to send session cookie information as well  For example here is results of the post action (this was obtained by a packet sniffer)
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;POST /FileSave/FileSaver HTTP/1.1..Content-Type: text/xml;charset = utf-8..Content-Length: 511..Cookie: saplb_*=J2EE1812920)1812950; JSESSIONID=AMLR9kc_U9BUY2igeJRnmrROPQ9CUSjkLgHWqRsA_SAP; MYSAPSSO2=AjExMDAgAA5wb3J0YWw6aG9sdGtlZIgAB2RlZmF1bHQBAAdIT0xUS0VEAgADMDAwAwADQ0RBBAAMMjAxMTAzMjMxOTE5BQAEAAAACAoAB0hPTFRLRUT%2FAQYwggECBgkqhkiG9w0BBwKggfQwgfECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHATGB0TCBzgIBATAiMB0xDDAKBgNVBAMTA0NEQTENMAsGA1UECxMESjJFRQIBADAJBgUrDgMCGgUAoF0wGAYJKoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMTEwMzIzMTkxOTQxWjAjBgkqhkiG9w0BCQQxFgQUy3s1QVU8mTPPEmqZTAIs9jWTyIEwCQYHKoZIzjgEAwQwMC4CFQCApBVDXdX5JAy6MEcvZgaPXhd2BwIVAL9oO2XjR84Zv2Mum%2FeoRgu6qipc..&lt;/P&gt;&lt;P&gt;Cache-Control: no-cache..Pragma: no-cache..User-Agent: Java/1.5.0_24..Host: TestClient:8090..Accept: text/html, image/gif, image/jpeg, *; q=.2, &lt;STRONG&gt;/&lt;/STRONG&gt;; q=.2..Connection: keep-alive....&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;..&amp;lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/"&amp;gt;..   &amp;lt;soapenv:Header/&amp;gt;.. &amp;lt;soapenv:Body&amp;gt;.&lt;/P&gt;&lt;P&gt;      &amp;lt;tem:FileSave&amp;gt;..         &amp;lt;!&lt;DEL&gt;Optional:&lt;/DEL&gt;&amp;gt;..         &amp;lt;tem:FileName&amp;gt;Test.txt&amp;lt;/tem:FileName&amp;gt;..         &amp;lt;!&lt;DEL&gt;Optional:&lt;/DEL&gt;&amp;gt;..         &amp;lt;tem:FilePath&amp;gt;/Test1/&amp;lt;/tem:FilePath&amp;gt;..         &amp;lt;!&lt;DEL&gt;Optional:&lt;/DEL&gt;&amp;gt;..         &amp;lt;tem:FileData&amp;gt;VGhpcyBpcyBhIHRlc3Qh&amp;lt;/tem:FileData&amp;gt;..      &amp;lt;/tem:FileSave&amp;gt;..   &amp;lt;/soapenv:Body&amp;gt;..&amp;lt;/soapenv:Envelope&amp;gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 20:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaq-p/7793992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T20:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calling WCF Webservice From MII not using Webservice Action block</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793993#M39064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have this done on a customer project. I created a Local variable as datatype map. In this I create multiple entries like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KEY                            VALUE&lt;/P&gt;&lt;P&gt;SOAPAction               "http://www.funkserver.de/v3/FSP3InterlinkGatewayWS/action/InterlinkGatewayWS.Login"&lt;/P&gt;&lt;P&gt;Accept                       application/soap+xml, application/dime, multipart/related, text/*&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I assigned this local variable to the HTTPPost.RequestProperties. That is what I did and it works like a charm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2011 20:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793993#M39064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-23T20:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Calling WCF Webservice From MII not using Webservice Action block</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793994#M39065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added what you suggest do my HTTPPost.RequestProperties  however it still is not working.  I can manually trigger the webservice  using various SOAP testing utilities.   However what I think is going on is that the session cookie information is causing me problems.    I'm looking at modifying the web service to handle this, or try another method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is somewhat unique in that this really isn't a tradtional web service hosted by IIS or Apache etc, its a self hosted WCF program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 16:56:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793994#M39065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T16:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Calling WCF Webservice From MII not using Webservice Action block</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793995#M39066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you like, you can setup a webex session and i can take a look. did you sniffe with the tcptrace?&lt;/P&gt;&lt;P&gt;i will be available 2 hours from now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;br&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pedro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 21:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793995#M39066</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T21:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calling WCF Webservice From MII not using Webservice Action block</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793996#M39067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pedro pointed me in the right direction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 17:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/calling-wcf-webservice-from-mii-not-using-webservice-action-block/qaa-p/7793996#M39067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-29T17:57:12Z</dc:date>
    </item>
  </channel>
</rss>

