Sync Java Proxy Server response in XML

Hi !
We've this scenario: File1 <-> XI <-> Java Proxy <-> File2
Using a BPM, we made a Async/Sync workflow. It works ok. It uses a SYNC Java Proxy Server.
The problem is that inside the java proxy, we query an http source that returns already XML formated data. We need this data to be mapped from the java proxy response message type to the File2 message type.
We know that we can parse the XML data inside the java proxy and fill the response message type structures (creating items, and array items for nested records), or directly   code the mapping here.
But, is there any alternative to pass the received XML from the HTTP directly to XI, and map that XML structure with the File2 message type using graphical mapping ? instead of programming the xml parsing and creating the response structure?
If we create a message type for the response of the java proxy, as 1 field that contains the whole XML code, then we would not map it....Is there any way to complete or to add  something to the received XML code, to convert it to the XI message format..so XI could interpret it as a true XI message and map it transparently via graphical mapping?
Thanks,
Matias

Hi Akshay !
That's exactly what I don't know how to do it.
Inside the java proxy function I have a string variable, let's call it xmlResponse, that contains:
<customer>
<name>Matias</name>
<country>China</country>
</customer>
I also have a message type created in XI (let's call it MT_Response), that has the same fields as the above message structure. And my java proxy function is declared something like this:
public MT_Response.Type myFunction(MT_Request.Type myRequest) {
String xmlResponse="";
// http connection code goes here..
xmlResponse = httpConnection.getResponse();
return ??????? what ????
I don't want to parse the xmlResponse variable in order to fill the MT_Response structure. I need a more direct way, because the content of xmlResponse is already XML !
Thanks.

Similar Messages

  • Synchronous Java Proxy Server template - filling reponse message elements

    Hi !
    I'm writing a java proxy server for a synchronous interface. I'm somehow new in java...and I don't know how should I create elements for my response message inside the java method used to process the request message.
    The response message format is something like this:
    <field1>abc</field1>
    <field2>
    ....<field2a>
    ........<fields2a1>
    ........</fields2a1>
    ....</field2a>
    ....<field2a>
    ....</field2a>
    </field2>
    according to the type "DT_Output_Type" type of the public class MyMethod defined in the java template generated by XI repository..
    I think I should do something like this:
    DT_Output_Type response = new DT_Output_Type();
    DT_Output_Type.field2_List field2values = new DT_Output_Type.field2_List();
    field2values.setfield2a(0,"1234");
    response.setfield1 = "abc";
    response.setfield2(field2values);
    return response;
    But I receive "Error invoking method". If I comment out the code where I assign values to sub-elements, everything works ok.
    Thanks !
    Matias

    Hi Matias,
    >><i>DT_Output_Type.field2_List field2values = new DT_Output_Type.field2_List();</i>
    This will create instance for field2 only.
    Before setting field2a using <i>field2values.setfield2a(0,"1234");</i> you must creat instance of field2a and also for field2a1.
    I guess field2a will be an array.
    so the order of creating instance and setting values can be ...
    1. create instance of field2
    2. create instance of field2a array
    3. create instance of first array element of field2a
    4. create instance of field2a1
    5. set value for field2a1
    6. set field2a1 in first array element of field2a
    repeat steps 3-6 for next elements of field2a
    7. set field2a array object (created in step 2) in field2
    8. response.setfield2(field2values);
    Also,
    as mentioned by Amol, set value for filed1 should be
    response.setfield1("abc");
    Regards,
    Uma

  • Give me description about JAVA Proxy Runtime and JAVA Proxy Server

    Give me description about JAVA Proxy Runtime and JAVA Proxy Server with some examples.

    Hi,
    Java proxy runtime :
    Using the Java proxy runtime you can receive messages or send messages to the Integration Server.
    This will help you
    http://help.sap.com/saphelp_nw04/helpdata/en/64/7e5e3c754e476ee10000000a11405a/frameset.htm
    Java proxy server :
    The connection to the Integration Server by using the Java proxy runtime.
    This will help you
    http://help.sap.com/saphelp_nw04/helpdata/en/87/5305adc23540b8ac7bce08dbe96bd5/frameset.htm
    Regards
    Agasthuri Doss

  • Open source Java proxy server?!

    Hi,
    I want to use a java proxy server in my application.Can someone suggest me some popular java proxy server with free source code? Also, the proxy should log URL details that the user navigates to.
    Any help is greatly appreciated.
    Thanks
    Aparna

    Hi michael,
    In fact i have downloaded the proxy but running into problems while using it.I am using it on windows platform and when i give some URL in the browser, the request is taken by our RabbIT but after that the browser is asking me for the authentication for a number of times and then show me some error.Why is RabbIT asking me for authentication though i am specifying it in the configuration file?
    Any help is appreciated.
    Aparna

  • Error when deploy Java Proxy Server EAR to PI

    We are trying to deploy our Java Proxy Server EAR to PI using Visual Administrator. However, it gives the following error:
    Deploy of the ear has errors :
    java.rmi.RemoteException: Cannot deploy application sap.com/TestBatch
    Reason: Errors while compiling:
    .... .java:91 illegal escape character
    if (method.equals("U0024descriptor")) { ....
    We have tried to deploy the same EAR to another PI system and it works fine. As a result, we think we might have missed something when installing or configuring this PI but don't have a clue where to start. We have also tried deploying using SDM but also didn't succeed.

    Hi Pikad !
    I understand that it the very same EAR deployed with no hassle in another PI, here it should work ok, but I think you should check the backslash you are using. If you need to use the backslash character, you must use ("
    U0024descriptor") or change the U to \u0024 for the dollar sign.
    Check:
    Regards,
    Matias.

  • Issue with using Sun Java Proxy Server

    We are trying to access the WebService using the Sun Proxy Server.
    When I access the WebService through proxy ,I find the error message in proxy error log as
    [18/Oct/2005:19:10:40] failure ( 1288): for host 127.0.0.1 trying to POST http://localhost:1080/yodsoap/services/CobrandLogin, service-http reports: HTTP7760: error reading request body (Client closed connection)
    and the access log is as follows:
    POST http://localhost:1080/yodsoap/services/CobrandLogin HTTP/1.1" 400 147
    But when i see the WebServer access log for the same WebService POST /yodsoap/services/CobrandLogin HTTP/1.1" 200 1783 "-" "Axis/1.1RC1"
    This case is happening when the request is compressed for the webservice. and the request headers are as follows:
    POST /yodsoap/services/CobrandLogin HTTP/1.1
    Content-Type: text/xml; charset=utf-8
    Accept: application/soap+xml, application/dime, multipart/related, text/*
    User-Agent: Axis/1.1RC1
    Host: 127.0.0.1
    Cache-Control: no-cache
    Pragma: no-cache
    SOAPAction: "loginCobrand"
    Content-Length: 1412
    Connection: close
    Content-Encoding: gzip
    And the response headers are as follows:
    HTTP/1.1 200 OK
    Server: Resin/3.0.8
    Content-Type: text/xml; charset=utf-8
    Transfer-Encoding: chunked
    Date: Tue, 18 Oct 2005 13:41:50 GMT
    So ,we found out that if we dont use the proxy server,then the WebService is working properly,but if we start using the proxy server,we are encountering HTTP400 error.
    Any ideas will help out to solve this problem..???
    Thankz in advance.
    Regards,
    Somendra

    This is what I see in the error message:
    ProxyFactory initialized in SOAP_CLIENT_MODE
    System property : com.yodlee.soap.client.log4j.config not found. Using the default config resource : com.yodlee.util.soap.log4j
    ProxyFactory initialized in SOAP_CLIENT_MODE
    System property : com.yodlee.soap.client.log4j.config not found. Using the default config resource : com.yodlee.util.soap.log4j
    HTTP Header name and value is HTTP/1.1 400 Bad request
    HTTP Header name and value is Server Sun-Java-System-Web-Proxy-Server/4.0
    HTTP Header name and value is Date Tue, 18 Oct 2005 14:56:21 GMT
    HTTP Header name and value is Connection close
    com.yodlee.core.CoreRemoteException: org.xml.sax.SAXException: Bad envelope tag: HTML
         at com.yodlee.soap.core.login.CobrandLoginSoapClientProxy.loginCobrand(CobrandLoginSoapClientProxy.java:132)
         at SoapClient.main(SoapClient.java:45)
    Caused by: org.xml.sax.SAXException: Bad envelope tag: HTML
         at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:543)
         at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
         at org.apache.axis.client.Call.invokeEngine(Call.java:2511)
         at org.apache.axis.client.Call.invoke(Call.java:2481)
         at org.apache.axis.client.Call.invoke(Call.java:2176)
         at org.apache.axis.client.Call.invoke(Call.java:2099)
         at org.apache.axis.client.Call.invoke(Call.java:1622)
         at com.yodlee.soap.core.login.CobrandLoginSoapBindingStub.loginCobrand(CobrandLoginSoapBindingStub.java:225)
         at com.yodlee.soap.core.login.CobrandLoginSoapClientProxy.loginCobrand(CobrandLoginSoapClientProxy.java:119)
         ... 1 more
    Caused by: org.xml.sax.SAXException: Bad envelope tag: HTML
         at org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:107)
         at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:934)
         at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1635)
         at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:634)
         at org.apache.crimson.parser.Parser2.parse(Parser2.java:333)
         at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
         at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
         at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:230)
         at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
         ... 9 more

  • Hire a java expert for java proxy server.

    hello,
    i need a expert java programmer to hire for a simple java proxy project please contact me if you are intrested please leave me a message for more info.

    http://localhost:7021/sbresource?PROXY/MySample/MyJMSProxyService is the WSDL URL of the proxy.
    Transport is is picked by the client from wsdl.
    As far as the documentation of client generation is there, there is no change.
    But meanwhile I have started working on sending the message directly to queue. JMSProxy is getting called. May be I will first run the proxy this way and then try troubleshooting the java client.
    Regards
    Ashwani

  • Sun Java proxy server 3.6 SP7

    Hi
    When I want to use my proxy for non anonymous FTP server I get an error, because default proxy server ( v.3.6 ) connect as anonymous and login msgbox doesn't appear Why ???
    I can do this with 4.0.2 but this version doesn't work fine ( proxyd proccess consumes about 75% resources ).
    So alternativelly I can use CERN standard for some basic username, but it doesn't work with username like [email protected] and password
    Does anyone know how to fix this ?

    OK
    I have problem when I want to use proxy server for non anonymous ftp sites.
    When I write some URL ftp://ftp.xxx.xx ( non anonymous FTP ) proxy server default connects as anonymous and then server reply :
    The requested item could not be loaded by the proxy.
    Login incorrect.
    I want that proxy server ( like 4.0.2 ) reply login incorrect and internet browser ( not IE ) asks for right user and password
    And about 4.0.2, when I start proxy server ( Solaris 9 SUN E450 ) and receive clients requests one of the proxyd proccess constantly uses a lot of system resources ( ~ 75%, especially kernel and user mode )

  • Problem in JAVA proxy scenario: cannot locate QSI root directory

    Hi Frnds,
    i am using RFC to JavaProxy, actually through java proxy we are connecting to the bank for payment.
    And the bank has provided one payment client application which needs to be installed on the server for interacting with the bank,
    and we had installed the payment client on to the server. But we are getting following type of error in the response,
    SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: Error invoking method egateJavaMsgIntInOutJava of proxy bean $Proxy258: cannot locate QSI root directory: com.sap.aii.proxy.xiruntime.core.XmlInboundException: Error invoking method egateJavaMsgIntInOutJava of proxy bean $Proxy258: cannot locate QSI root directory</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    What could be the possible solution in order to solve this error.
    Thanks,
    Raj
    Edited by: RajSrivastava on Jul 8, 2009 11:03 AM

    Hi Madhav,
                    Please check the following links regarding to u rproblem.
    Java Proxy Server: cannot locate proxy bean...
    Cannot locate proxy bean IN RWB
    https://forums.sdn.sap.com/click.jspa?searchID=11113489&messageID=3039952
    warm regards
    mahesh.

  • Synchronous-Asynchronous Interface with Java Proxy

    Hi Gurus!!
    I have an Interface which begins on SAP with a call to an asynchronous ABAP Proxy . Xi sends the message to Java Proxy Server. This Java Proxy Server calls to a Java Proxy Client that sends the response to SAP through XI. This response is taken on SAP on ABAP Proxy Inbound.
    These arquitechture is a requirement, because the time between the request and the response could be 30 minutes and the user shouldn't be waiting the response synchronously.
    Is there any way to the user could manage the response in the same "thread" that he opened in the request?
    I hope have been clear enough.
    Thanks and regards,
    Manuel Míguez.

    The only possibility I could think of is using correlation. There also you have the limitation of java proxy as it does not support adapter modules. Could you use SOAP for your scenario?
    JMS receiver could use inherent properties to define correlations. But as your case is non-JMS, you have to define it manually. Say, if your receiver system is X, then the request from XI to system X should carry its message ID information. While X created the response message, it should use this message ID as the correlation ID for the response message. This could be achieved using an adapter module.
    I guess you were not looking for such a complex solution.
    Regards,
    Prateek

  • Alerts for Java Proxy Runtime

    Hi Gurus!!
    I have a problem with a Asynchronous Java Proxy Server.
    When a message is sent from Integration Engine to the Java Proxy, in the SXMB_MONI the status is ok, but if there is a problem on the Java Proxy, I can only see on the Messaging Tool 'http://myserver:myport/MessagingSystem'.
    Is there any alert to inform of problems of excution of Java Proxies?
    Thanks and regards,
    Manuel Míguez.

    If you can see the error in the Adapter engine monitoring, you can create rule in RWB and get an alert mail. If the error is occuring beyond XI AE, you can not trigger an alert.
    VJ

  • Proxy Server in File Transfer System

    Hi, I need to write out a file transfer system through a proxy server for my project
    All the while i was writing a file transfer system directly from client to server without any security issue
    Anyway, the scope is given as below, and i know it needs the JSSE package to come out a SSLSocket and SSLServerSocket.
    The question is...
    1. can i use NIO with JSSE included?
    2. how to come out a java proxy server? is there any tutorial i can read through?
    The scope is given as below
    1) Proxy server
    * perform tunning and keep the linking between file transfer host and client
    * authenticate the file transfer client using CA certificate to establish SSL connection
    * Once authorised, need to establish another SSL connection to host engine
    2) File Transfer Manager at Client
    * To initiate SSL connection to proxy server
    * To open two type of connection: command and file connection
    * The command connection is always keep alive
    * For the file connection, the system required to re-open another connection after send file to host
    * Auto-reconnect to server when the connection is down
    * Re-handshake the SSL connection when the channel is inactive for sometime
    3) File Transfer Manager at host
    * To authenticate the proxy server and authorise the client before establish the connection
    * Manage the connection
    * request to client to open new connection (by sending command) when there is no file connection available to send file to client
    * Request for re-handshake the SSL connection when the channel is inactive for sometime

    Hi,
    It is a new feature of SMB3 named SMB MultiChannel, which helps copy files through multiple NICs. 
    Detailed information please see:
    http://blogs.technet.com/b/josebda/archive/2012/05/13/the-basics-of-smb-multichannel-a-feature-of-windows-server-2012-and-smb-3-0.aspx
    As mentioned you can disable or enable it with following steps:
    2.2. Disabling
    SMB Multichannel is enabled by default and there is typically no need to disable it. 
    However, if you want to disable SMB Multichannel (for testing purposes, for instance), you can use the following PowerShell cmdlets:
    On the SMB server side:
    Set-SmbServerConfiguration -EnableMultiChannel $false
    On the SMB client side:
    Set-SmbClientConfiguration -EnableMultiChannel $false
    Note: Disabling the feature on either the client or the server prevent the systems from using it.
    2.3. Re-enabling
    You can re-enable SMB Multichannel after you disabled it by using:
    On the SMB server side:
    Set-SmbServerConfiguration -EnableMultiChannel $true
    On the SMB client side:
    Set-SmbClientConfiguration -EnableMultiChannel $true
    Note: You need to enable the feature on both the client or the server to start using it again.
    If you have any feedback on our support, please send to [email protected]

  • New way generating of Java Proxy to support parallel processing

    Hi All!!
    To the Java Proxy Server supports the processing of several executions in parallel way, a new way or generation has been released. On the Integration Directory, when you select an Inbound Message Interface and go to Java Proxy Generation, 2 .zip archives are generated, one for the execution in sequential way (XXX.ZIP) and other for the execution in parallel way (XXX_PARARELL.ZIP).
    I have tried to generate the Java Proxy only with XXX_PARARELL.ZIP and I think is not possible, because no EJB Candidate is generated.
    Somebody knows how I can generate the Java Proxy?
    Thanks and regards,
    Manuel Míguez.

    a bit of light reading for you
    http://onesearch.sun.com/search/developers/index.jsp?and=java.lang.ClassFormatError+Bad+magic+number&nh=10&Search.x=26&Search.y=11&phr=&qt=&not=&field=&since=&col=devforums&rf=0

  • Positive Application Acknowledgement from Java Proxy

    Is it possible to send positive application acknowledgmenet from Java Proxy Server?
    There is ApplicationFaultException that transforms into negative ack.

    Hi Sergey,
    Please go thru this..
    http://help.sap.com/saphelp_nw04/helpdata/en/55/65c844539349e9b1450581ab44a5e6/frameset.htm
    Hope this helpsyou..
    cheers,
    Prashanth

  • Sync inbound java proxy timeout

    Hi all
    my scenario abap proxy to java proxy sync.
    but i had timeout error with some bulk data, but not too big...
    does anyone know how to increase time for inbound java proxy? 
    regards;
    dennis

    Dear Ogawa,
    Please if you have step by step document please send me .
    i am getting this error in my scenario:
    I am working on Java server proxy, In my scenario i am picking a file from sender File Adapter and in Receiver side i am using java proxy (Inbound). But in SXMB_MONI , it give me the Error and Error no is :110
    See the Detailed Error in Call Adapter.
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!-- Call Adapter
    -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
    <SAP:Category>XIServer</SAP:Category>
    <SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
    <SAP:P1>110</SAP:P1>
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText />
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack>Error while receiving by HTTP (error code: 110, error text: )</SAP:Stack>
    <SAP:Retry>A</SAP:Retry>
    </SAP:Error>
    Please help me .
    Regards
    Lateef

Maybe you are looking for

  • Java.lang.NullPointerException what?

    how could i fix the error java.lang.NullPointerException associated with this code? import java.applet.Applet; import java.awt.*; import javax.swing.*; public class Visual extends JApplet { JButton[] theCase; public Visual() {                theCase

  • Re: Routing download to SAP ME from ECC

    Hello Friends, When a routing for a material from SAP ECC is sent again to SAP ME, it creates a new version of routing. Is it possible to make a check during routing download if a routing with the same number exists in ME or not. And if it exists the

  • Adobe Reader error-Administrator has Set Policies to prevent this install

    When installing Adobe Reader i receive the following error message-Administrator has Set Policies to prevent this installation. this is the first time ever this has happened.I normally just follow the update prompts and no problems. I have windows xp

  • Canceling CC and maintaining owned photoshop and illustrator

    I signed up for CC almost two years ago for discount rate - despite owning software  Photoshop, Bridge, Illustrator and Flash for years. The CC is great but I don't use the other programs at all and find the raised price of $54.00 a month way too exp

  • ITunes and Bonjour

    Trying to download latest update, but it keeps asking for bonjour.msi file and I don't have the file.  How do I get it or is there a way to download without bonjour?