Generate !DOCTYPE in outbound http

Hello,
What is the best way to generate a !DOCTYPE tag in an outbound message?
Is there a doc or thread that describes how to do this?
I've read about XSL and java mapping for this but was wondering if there maybe was another way. Isn't it possible to use the HTTP adapter header fields for this maybe?

Ok,
Wrestling now with XSL mapping. I have an imported archive with the following content:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Add the Doctype declaration -->
<xsl:output method="xml" indent="no"
doctype-system="http://integratex.quality.techdata.de:8080/ix/dtd/ixOrder.dtd"/>
<!-- Identity Transform - copy the source XML to the output without any changes -->
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Activation goes well.
When I try to use this imported archive in an interface mapping i get the error:
DOCTYPE_Stylesheet  has no program
DOCTYPE_Stylesheet is the arbitrary name of my imported archive.
What am I missing?
Thanks
Tom

Similar Messages

  • Removing HTTP header field DOCTYPE in inbound HTTP

    Hello,
    For an inbound HTTP message we need to remove the !DOCTYPE tag from the message since XI message mapping cannot handle it.
    We had a similar issue with outbound http where we used an xslt mapping to include the DOCTYPE.
    I think it should be possible to also remove the doctype with xslt, in fact I have an xslt that works in xmlspy on the inbound http message, but after deploying in XI the mapping step fails.
    The xslt is small but working:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
    <xsl:template match="/">
       <xsl:copy-of select="." />
    </xsl:template>
    </xsl:stylesheet>
    When I test the interface mapping it gives a transformer exception.
    When i test the finished product I see the following in the monitor:
    com/sap/xi/tf/_IF021_Ordrsp_TD_to_Ordrsp_CCS_com.sap.aii.utilxi.misc.api.BaseRuntimeExceptionFailed to load resource from the context classloa~
    Since mapping works in external tools I'm not sure what the problem is for XI and how to solve it.
    Another solution for this would seem to be a java mapping although i have no clue as to how to do this.
    How to proceed?
    Thanks
    Tom

    update:
    The solution lies in note 812966 which describes the problem above, and also gives an example java mapping program as example to get rid the DOCTYPE.
    Regards
    Tom

  • Biztalk 2013 WCF-WebHTTP Adapter - Outbound HTTP Headers

    Hi
    I have a requirement to connect to a service using the WCF-WebHTTP adapter that requires authentication to be passed in the Headers.
    A usercode and password is sent in the intial header and a security token is returned in the response header.
    This security token is then used in the header of each subsequent call to the service.
    I could not find anything in the documentation about getting and setting the "HTTP Header" data using maps or variables or using variables in the "Outbound HTTP Headers" on the adapter transport properties.
    Any help on this would be gratefully received.
    Malcolm

    You can set the outbound HTTP header in WCF-WebHTTP adapter by 2 ways
    1) At adapter level Change adapter properties
    2)Changing Message context property at Orchestration or at pipeline
    Its been well documented here
    http://blog.codit.eu/post/2013/04/30/Using-HttpHeaders-with-WCF-WebHttp-Adapter-on-Biztalk-2013.aspx
    Thanks
    Abhishek

  • Outbound HTTP  - Connection fails

    Hello,
    We are using Oracle 10.1.2 B2B Integration to test outbound XML messaging over HTTP 1.1. We get the following error when we try a outbound flow.
    Message Transmission Transport Exception
    Transport Error Code is OTA-HTTP-SEND-1005
    Stack trace
    =========
    StackTrace oracle.tip.transport.TransportException: [IPT_HttpSendConnectionRefused] HTTP connection is refused.
         at oracle.tip.transport.TransportException.create(TransportException.java:91)
         at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:443)
         at oracle.tip.transport.b2b.B2BTransport.send(B2BTransport.java:283)
         at oracle.tip.adapter.b2b.transport.TransportInterface.send(TransportInterface.java:665)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequestPostColab(Request.java:1217)
         at oracle.tip.adapter.b2b.msgproc.Request.outgoingRequest(Request.java:701)
         at oracle.tip.adapter.b2b.engine.Engine.processOutgoingMessage(Engine.java:832)
         at oracle.tip.adapter.b2b.data.MsgListener.onMessage(MsgListener.java:531)
         at oracle.tip.adapter.b2b.data.MsgListener.run(MsgListener.java:344)
         at java.lang.Thread.run(Thread.java:534)
    Caused by: java.net.ConnectException: Connection timed out: connect
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:452)
         at java.net.Socket.connect(Socket.java:402)
         at java.net.Socket.<init>(Socket.java:309)
         at java.net.Socket.<init>(Socket.java:153)
         at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3041)
         at HTTPClient.HTTPConnection.doConnect(HTTPConnection.java:3773)
         at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2849)
         at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2778)
         at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2564)
         at HTTPClient.HTTPConnection.Post(HTTPConnection.java:963)
         at oracle.tip.transport.basic.HTTPSender.send(HTTPSender.java:414)
    We are trying to POST to a HTTP URL in the internet. The end point details are
    oracle.tip.adapter.b2b.transport.TransportInterface:send TO Endpoint: 501 http://as2.preprod.1sync.org:4080/exchange/8380160030003
    Protocol = HTTP
    Version = 1.1
    Transport Header
    1Sync-TestHTTP
    Content-Transfer-Encoding:binary
    FROM:Oracle Development
    MESSAGE-ID:0A0A0A0A1132FF680DB000001904E0F0
    DATE:Fri, 15 Jun 2007 15:18:04 GMT
    Content-Type:text/plain; charset=us-ascii
    Connection:close
    We tried the following options
    #1
    oracle.tip.adapter.b2b.ProxyHost =
    oracle.tip.adapter.b2b.ProxyPort =
    #2
    oracle.tip.adapter.b2b.ProxyHost =www-proxy.us.oracle.com
    oracle.tip.adapter.b2b.ProxyPort = 80
    But in both cases the outbound fails with the same error.

    Ramesh,
    Thx again for your help.
    We were able to resolve the HTTP outbound errors by setting the following java.net properties to the opmn.xml file.
    http.proxySet
    http.proxyHost
    http.proxyPort
    E.g. -- here is a modified XML fragment.
    <category id="start-parameters">
    <data id="java-parameters" value="-server -Xms8M -Xmx512M -Dhttp.proxySet=true -Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80"/>
    </category>
    We still have one doubt though --
    There are several XML sections where there "start-parameters" are defined.
    Eg. -
    ias-component = OC4J, B2B, b2bmid.10.10.10.10
    Process-type = OC4J_B2B, B2BServer
    As of now we have added "-Dhttp.proxySet=true -Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80" to every of these sections.
    But which is the exact section to be modified for Outbound HTTP?

  • HELP!!! - EDI Outbound HTTP call failure

    Our EDI outbound (HTTPS-OXTA) is failing since Monday in production. We narrowed down the area that might be an issue. This is what we see in the Apache log,
    [Tue May 22 01:31:56 2012] [debug] opm_ew.c(469): OPM: EW: Enters opm_ew_broadcast()
    [Tue May 22 01:31:56 2012] [debug] opm_ew.c(517): OPM: EW: Broadcasts msg: cmd=Broadcast&<serverName>&8001&1337662614&JServ&DiscoGroup&<server_url>&1&1&0&31490&17001;FormsGroup&<server_url>&1&1&0&31491&18001;OACoreGroup&<server_url>&1&1&0&31489&16001;XmlSvcsGrp&<server_url>&1&1&0&31492&19001
    [Tue May 22 01:31:56 2012] [debug] opm_hc.c(291): OPM:hc: Connecting to url: <server_url>:8101/oprocmgr-service
    [Tue May 22 01:31:56 2012] [debug] opm_hc.c(314): OPM:hc: Connection to host: <server_url>, port: 8101
    [Tue May 22 01:31:56 2012] [debug] opm_hc.c(438): OPM:hc: HTTP Request sent to server: POST /oprocmgr-service<server_url> HTTP/1.1^M
    Host: <server_url>^M
    Content-Type: application/x-www-form-urlencoded^M
    Content-Length: 269^M
    cmd=Broadcast&<serverName>&8001&1337662614&JServ&DiscoGroup&<server_url>&1&1&0&31490&17001;FormsGroup&<server_url>&1&1&0&31491&18001;OACoreGroup&<server_url>&1&1&0&31489&16001;XmlSvcsGrp&<server_url>&1&1&0&31492&19001
    [Tue May 22 01:31:56 2012] [debug] opm_hc.c(808): OPM:hc: headers[0] is HTTP/1.1 404 Not Found
    [Tue May 22 01:31:56 2012] [debug] opm_hc.c(808): OPM:hc: headers[1] is Date: Tue, 22 May 2012 05:31:56 GMT
    [Tue May 22 01:31:56 2012] [debug] opm_hc.c(808): OPM:hc: headers[2] is Transfer-Encoding: chunked
    [Tue May 22 01:31:56 2012] [debug] opm_hc.c(808): OPM:hc: headers[3] is Content-Type: text/html; charset=iso-8859-1
    [Tue May 22 01:31:56 2012] [debug] opm_ew.c(525): OPM: EW: Broadcasts to <server_url> and send result=404
    I'm trying to understand the steps of the process. Does "HTTP/1.1 404 Not Found" response to the opm_hc.c(438) call? When I type "<server_url>:8101" in the browser, I get "The webpage cannot be displayed" error. Does this should work?
    EDI outbound is routed to proxy and confirmed that call from OTA was never made to proxy. Switched protocol to SMTP and it worked. There is no issue other than HTTP initial call failure. Any help you can give me I'd appreciated.

    George great support so far (+5)
    Hi Robert
    debug ccsip all is very intensive so you should do the following before enabling the debug
    service sequence-numbers
    service timestamps debug datetime localtime msec
    logging buffered 10000000 debug
    no logging console
    no logging monitor
    default logging rate-limit
    default logging queue-limit
    Then..
    <Enable debugs, then test again.>
    debug ccsip all
    <Enable session capture to txt file in terminal program.> (such as Putty)
    then do the ff:
    terminal length 0
    show logging
    ++++
    What is even more strange is that the call appears to be disconnected from the far end. From the logs below the outbound call leg (45) is where the disconnect is coming from and the "cc_api_call_disconnected" shows this call leg talking to CCAPI..
    001858: *Jan 20 13:18:19.102: //45/8B56ECEE8011/CCAPI/cc_api_call_disconnected:
       Cause Value=16, Interface=0x3CE6D670, Call Id=45
    001859: *Jan 20 13:18:19.102: //45/8B56ECEE8011/CCAPI/cc_api_call_disconnected:
       Call Entry(Responsed=TRUE, Cause Value=16, Retry Count=0)
    Can you also send a debug voip ccapi onout from the CUBE. we need to check if the call arrives there, though we don't see any INVITE request sent out.

  • HANA XS Outbound Http Issue

    Hello all,
    We are unable to call http destination from XS .
    Below is the hana log:
    XsIpConnection   IPConnection.cpp(00072) : IPconnection can not initialize libsapcrypto. rc = -40
    In XSJS service:
    HttpClient.request: request failed. The following error occured: unable to establish connection to <host>:443 - internal error code: Secure store initialization failed
    Cyprto is installed successfully and we were able to add and authenticate the Http destination in XS Admin tool .
    Can you please provide your inputs to resolve this?
    Thanks,
    Ramya

    Hi Ramya,
    It seems you want to make HTTPS request which is not enabled by default. Please make sure you've configured everything successfully. Here is some info for you.
    How to Configure SSL for SAP HANA XS Engine using SAPCrypto
    Outbound httpS with HANA XS (part 1) - set up your HANA box to use SSL/TLS
    Outbound httpS with HANA XS (part 2) - set up the trust relation
    Outbound httpS with HANA XS (part 3) - call the https outbound service in XS server side JavaScript (xsjs)
    Best regards,
    Wenjun

  • Outbound HTTP Connection Configuration

    Hi
    I need to invoke a REST service from HANA. Is there any way to configure the outbound connection as opposed to hardcode the connection paramteres in the code?
    Thanks,
    Diego Vinas

    I just did this with HTTPS, I used this series of blogs on SCN as a good resource for getting configured with HTTPS, I assume that the steps for HTTP would be much easier because you don't need to setup the Trust Store:
    http://scn.sap.com/community/developer-center/hana/blog/2013/11/02/outbound-https-with-hana-xs-part-1--set-up-your-hana-box-to-use-ssltls

  • BD64 - generate partner profile - outbound parameter; wrong receiver port

    Hi all,
    I'm using a distribution model (transaction BD64) for creating partner profiles in my system.
    This works fine, exept for one thing.
    The receiver port used in the outbound parameter is wrong.
    It's using the tRFC port of the destination system instead of the tRFC port of the SAP XI/PI system.
    If I send an Idoc it's now going directly to the destination system instead of going to XI/PI first.
    I could modify this manually (which is a lot of work), but I would like to know how SAP determines which tRFC port is used when generating the partner profile and creating the outbound parameters.
    Can anybody help me with this?
    Reagrds,
    Roy

    Hi,
    According to my knowledge, if you have a receiving logical system name is same as the RFC destination name, then the SAP will take the RFC destination properly and will generate the port automatically (for Ex: if you have a port A00..12 then it will create a port A..13). the generated port will be used in partner profile.
    Or
    Give a try by assign the RFC destination (The receiving logical system name and RFC destination name should be same) for a port and use it while generating the partner profile by using BD64 or SALE.
    Regards,
    Venu V

  • How to encrypt an outbound http communication channel?

    How can i take a synchronus outbound communication channel and encrypt it using https? In the dropdown I only see http and rfc destination?
    Thanks

    Hi
    Have look at this
    http://help.sap.com/saphelp_nw04s/helpdata/en/4f/65c3b32107964996a56e4165077e24/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/a4/d0201854fb6a4cb9545892b49d4851/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/55ba9790-0201-0010-aa98-ce8f51ea93cd
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b2e7020d-0d01-0010-269c-a98d3fb5d16c
    http://help.sap.com/saphelp_nw04s/helpdata/en/a8/882a40ce93185de10000000a1550b0/content.htm
    /people/sap.user72/blog/2005/06/16/using-digital-signatures-in-xi
    How to achieve encryption in XI
    Encryption in XI
    XI Encryption
    Thanks

  • WLS 8.1.4 - Generating WebService client with HTTP 1.1 protocol

    I tried to generated a web service client (Weblogic Workshop 8.1.4) from a WSDL.
    When I run this client I found that it uses HTTP 1.0 protocol (from access log)
    Is there a way (flag,...) to force the client to use HTTP 1.1 protocol ?
    Thanks
    Andrea

    martin ng wrote:
    any reply so far?....seems to me weblogic need to improve their support. Whenever i make a query eveything goes to Forum.Hi. I hope it's documented somewhere that these forums are not
    official BEA/WebLogic support. For quick official support, open
    a case with them at:
    http://www.bea.com/framework.jsp?CNT=index.htm&FP=/content/support/contacts/
    Joe

  • How to provide credentials for outbound HTTP connection

    Hi all,
    My outbound request requires basic authentication How to provide credentials within xsjs for outbound request.
    My .xshttpdest file has authType=basic:
    host = "host";
    port = 80;
    description = "decription";
    pathPrefix = "/geoserver/";
    authType = basic;
    useProxy = false;
    proxyHost = "proxy";
    proxyPort = 8080;
    timeout = 0;
    Correspondent xsjs class create request:
    var request = new $.net.http.Request($.net.http.GET, "");
    Is any possibility to provide request with credentials?
    Thanks.
    Slava

    You provide credentials by configuring for the HTTP destination via the XSAdmin tool. Directly supplying credentials in the XSJS code itself would not be sure.

  • How to pass http header in outbound HTTP Binding?

    I have to call a Rest service from my composite. The Rest service needs couple of Headers. I'm using HTTP Binding for this call.
    How can I set the HTTP headers in the HTTP Binding outbound call ?
    Thanks
    --Sreeny                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    1. Right-click on HTTP binding adapter and select "configure WS policy"
    2. Under security, click on "+" sign and add oracle/wss_http_token_client_policy
    3.Go to Oracle Weblogic Admin console
    Under Security Realms->myrealm->Users and Groups-> New User.
    Add username/password
    4.Go to Oracle Weblogic Enterprise Manager(EM)
    Right click on Weblogic Domain->mydomain(it could be anyname or SOAClusterDomain)
    select Security->credentials
    Create a key named "mykey" (or any name) under oracle.wsm.security with the same username/password you have given on step 3.

  • Can't browse web (outbound HTTP port 80) using wired Ethernet

    I just purchased a new 20" Core 2 Duo iMac today (Leopard installed) and I'm seeing a very strange problem: I can't browse the web using a wired Ethernet connection. Here are the specifics:
    - When I set up wireless ethernet w/ Airport, it works fine (outbound port 80 access is successful)
    - Going back to wired ethernet, when I pop down into a shell, I notice that outbound FTP (port 25), outbound SSH on port 15554 works fine. When I run curl (text-based web browser), it hangs. This tells me that its only port 80 that's giving me problems and nothing else. The network connection in general is fine.
    This tells me the following:
    - wireless ethernet is working fine
    - wired ethernet mostly works - all outbound TCP ports that I've tested work great. Its just the HTTP/Web port 80 that seems to be blocked.
    I went into the Security area and under Firewalls, it appears that the default configuration is set up to allow just about anything out and in.
    This is so bizzare - I thing as far as networking goes, the web access is the most important one, so I can't see Apple disabling this somehow. What gives??
    Earlier, I had set up a few user accounts for the rest of the family and set up Parental Controls on my two kids accounts. When I started noticing the outbound web access issues, I even went as far as deleting all the accounts to try to return the system as close as possible to how i received it.
    Anyone have any ideas why my outbound web access is blocked?
    Thanks,
    Ben

    I am not sure what the fix is but let me give it a try here for you. (Making sure edit works with questions 1,2,3)
    1. What version of ColdFusion Builder are you running. Are you sure you are running Beta 3?
    2. Can you access these files from your explorer window?
    3. Are you using RDS to connect to these files or the file system? (should be able to do both but that might be helpful to know which is failing.)
    4. Now the final question... by browse you might have a different issue. What version of CF server are you running? This might not be the issue but again could be if you are running developer version. If not an issue let me know and will try to hook up with you via connect to do an online screen share and help you out here.

  • Generating EDI 810 Outbound File in 4030 version

    Hi All,
    I am working in EDI 810 outbound file generation. Is there any versions in it? What are the steps to generate the outbound file in 4030 version?
    Thanks in advance

    Hi,
    Please see
    How To Setup EDI 810 Outbound and 812 Outbound [ID 198252.1]
    Thanks

  • Portal generate excessive cookies in HTTP header

    We are using SUN jes 6.2 and found that it generates excessive number of cookies when we use the client property method on ProviderContext. It looks like, it creates a cookie for each property.
    This is causing proxy servers to reject our site. Has anyone had this problem before and able to solve it?
    Thanks,
    Damitha

    According to the javadoc for 'ProviderContext'
    A session property is shared between all clients using the session. In the case of authless, a session property is shared for all authless clients. In some cases it is desirable to set properties such that there is a 1-1 mapping between client and property. An example of this is a selected tab name. In the case of authless, it would not do to have the selected tab name shared between all authless clients because this would cause all authless clients to have the same selected tab. To set / get properties per accessing client, use the setClientProperty() and getClientProperty() methods.
    SUN support center informed us that the portal software creates a cookie per portlet to store the properties related to the portlet. However, it looks like whenever we call the setClientProperty method, it creates a new cookie.
    Has anyone else noticed this?

Maybe you are looking for

  • Scenario XI - HTTP - Webservice - XI - RFC - SAP R/3

    Hi, i have the scenario: Sending request to an Webservice per HTTPS and catch the response. This is working fine. In transaction sxmb_moni i can see the answer as XML. I have implemented the scenario response from webservice mapped into RFC-Function

  • Firewall is not working: The only way to access this forum is disabling it!

    Using Leopard Server 10.5.2: First: If I want to check this discussion forum, If I have enabled the firewall I can´t reach this pages or post it. If I disable the firewall then I can access the Apple discussions forum and post here! Second: In firewa

  • How to use javascript to auto fill a signature

    Hello, I am new to Adobe Acrobat Pro 9.  I have scanned a paper form/document that originally  had various data lines to be written on using an ink pen.  I saved the scanned PDF as an Acrobat 9 PDF.  I have added various pertinent text fields and che

  • How can I avoid memory leak problem ?

    I use Jdev 10.1.2 . I have a memory leak problem with ADF . My application is very large . We have at least 30 application module , each application module contain many view object and I have to support a lot of concurrent users . as I know ADF store

  • Downloading/printing a query  for documenting purposes

    I am brand new to Query Designer so I hiope this isn't TOO stupid of a question.  I am trying to download/print/capture the information when I open a query.  I mean this in regards to the leftmost windowpane on the screen you see.  It has the key fig