Java proxy client with HTTP sender
I have SP15. I have sender agreement with HTTP adapter for system A and Java Proxy Cleint that send message as system A.
When I send message through Java proxy I see error:
<i>SOAPFault received from Integration Server. ErrorCode/Category: XIServer/IN_BIND_WRONG_ADPT; Params: HTTP; AdditionalText: ; ApplicationFaultMessage: ; ErrorStack: Server agreement found belongs to adapter HTTP; current adapter is 'XI' </i>
When I deleted sender agreement it worked.
Could you explain this strange behavior? Is it a bug. Sender agrement for HTTP is necessary since SP16
I have the same problem with SOAP and file adapter. I've posted this here already.
XIServer/IN_BIND_WRONG_ADPT
I have deleted the sender agreement for my soap adapter scenarios, because a sender agreement is not necessary (created by the wizard). After that the soap adapter scenarios work fine. But at scenarios with a sender file adapter you need a sender agreement.
We had the following situation:
XI Test, XI SP17, Basis SP16 --> IN_BIND_WRONG_ADPT problem
XI QA, XI SP17, Basis SP14 --> okay
XI Prod, XI SP15, Basis SP 16 --> okay
We patched our XI QA to
XI QA, XI SP17, Basis SP16
After that we have the IN_BIND_WRONG_ADPT problem at our XI QA system too.
I started a SAPP OSS call two weeks ago but got no solution till now. They checked our systems some times but with no result.
Our central SLD is on the XI Prod System. Perhaps there is a connection. But I don't want to patch my XI Prod system to SP 17, because it's the only system that works without errors.
Message was edited by: Gil Ritter
Similar Messages
-
Web service proxy client with client cert cause SSLSessionNotFoundErr
Hi,
I tried to run web service proxy client with certification from JDeveloper 10.1.3.0.4 to call PKI enabled web service got folllowing error:
WARNING: Unable to connect to URL: due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
Web service deployed on OASHi,
i am trying to invoke from JDeveloper (10.1.3) a CRM On Demand's Web Service and I hava the same problem:
ADVERTENCIA: Unable to connect to URL: https://secure-ausomxgfa.crmondemand.com/Services/Integration due to java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
java.rmi.RemoteException: ; nested exception is:
HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:96)
at testerlast.ContactClient.contactInsert(ContactClient.java:88)
at testerlast.ContactClient.main(ContactClient.java:69)
Caused by: HTTP transport error: javax.xml.soap.SOAPException: java.security.PrivilegedActionException: javax.xml.soap.SOAPException: Message send failed: javax.net.ssl.SSLException: SSL handshake failed: SSLSessionNotFoundErr
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:93)
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:89)
at oracle.j2ee.ws.client.ClientTransportException.<init>(ClientTransportException.java:33)
at oracle.j2ee.ws.client.http.HttpClientTransport.invokeImpl(HttpClientTransport.java:144)
at oracle.j2ee.ws.client.http.HttpClientTransport.invoke(HttpClientTransport.java:121)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:169)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at testerlast.runtime.Contact_Stub.contactInsert(Contact_Stub.java:80)
... 2 more
To do the invocation I have done a proxy to consume this Web Service, with the follow main:
public static void main(String[] args) {
try {
testerlast.ContactClient myPort = new testerlast.ContactClient();
System.out.println("calling " + myPort.getEndpoint());
myPort.setUsername(nameUser);
myPort.setPassword(password);
ListOfContactData llista = new ListOfContactData();
ContactData[] contacts=new ContactData[2];
ContactData contact=new ContactData();
ContactInsert_Input input=new ContactInsert_Input();
// Login WS HTTPS
String idSesion=connexioWS_CRM.logon(URL,nameUser,password);
// Add contact
for (int i = 0; i < contacts.length; i++) {
contact.setId("ProvaWSCRM"+i);
contact.setContactFirstName("JDeveloper"+i);
contact.setContactLastName("prove"+i);
contact.setCellularPhone("77777777"+i);
contact.setDescription("Add contact with Id:"+contact.getId());
contacts=contact;
System.out.println("Id:"+contacts[i].getId()+" firstName:"+contacts[i].getContactFirstName()+" lastName:"+contacts[i].getContactLastName());
llista.setContact(contacts);
input.setListOfContact(llista);
input.setEcho("off");
System.out.println("Pwd:"+myPort.getPassword()+" Port:"+myPort._port+" endpoint:"+myPort.getEndpoint()+" user:"+myPort.getUsername());
myPort.contactInsert(llista,"LIC","Broadset","OFF");
// Logout en WS (HTTPS)
connexioWS_CRM.logoff(URL, idSesion);
} catch (Exception ex) {
ex.printStackTrace();
What's wrong? Any idea?
Thank you
Edited by: user12085357 on 31-oct-2009 10:39 -
Java proxy client logical port transport to Q and prod issue in target addr
Hi All,
I have a java proxy client having a logical port (configured using NWDS) to consume a web service in the provider system.
In the logical port, I have given target address, and logical port name. While moving this client proxy NWDI dev track to Q and prod,
how do I change this target address to point to Q and prod respectively. In other words, even though I am using Visual admin to configure the destination url for the logical port, to point to Q and prod, its still referring to the dev environment provider service after moving the proxy client to Q and prod. What is the suggested approach to take care of this issue
Thx
mikeHi Michael,
I can only help from that point of view that I believe this question belongs to the forum
Service-Oriented Architecture (SOA) and SAP
Please try to raise this question there.
Thanks and Regards,
Ervin -
How use to simple Java client with Https ?
Experts,
I am having some difficulties to call a https webservice on DataPower.
The following simple client has no problem to call HTTP webservice but HTTPs different story. SoapUI works just fine with Https request.
Can any one make a suggestion ? Appreciate any help !
public final static String DEFAULT_SERVER
= "https://123.123.123.123:443/Wsp";
// = "https://123.123.123.123:2048";
public final static String SOAP_ACTION
= "http://mycompany.com/Inquiry";
public static void main(String[] args) {
String server = DEFAULT_SERVER ;
String input1 = "123";
String input2 = "hello";
try {
URL u = new URL(server);
URLConnection uc = u.openConnection();
HttpURLConnection connection = (HttpURLConnection) uc;
connection.setDoOutput(true);
connection.setDoInput(true);
connection.setRequestMethod("POST");
connection.setRequestProperty("SOAPAction", SOAP_ACTION);
OutputStream out = connection.getOutputStream();
Writer wout = new OutputStreamWriter(out);
wout.write("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
wout.write("<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:sam=\"http://aglc.com/sampleDp\">\r\n");
wout.write("<soapenv:Header/>\r\n");
wout.write("<soapenv:Body>\r\n");
wout.write("<sam:AcordRequest>\r\n");
wout.write("<sam:TRANSID>" + input1 + "</sam:TRANSID>\r\n");
wout.write("<sam:TRANSBODY>" + input2 + "</sam:TRANSBODY>\r\n");
wout.write("</sam:AcordRequest>\r\n");
wout.write("</soapenv:Body>\r\n");
wout.write("</soapenv:Envelope>\r\n");
wout.flush();
wout.close();
String hhResponse ="";
InputStreamReader isr = new InputStreamReader(connection.getInputStream());
BufferedReader in = new BufferedReader(isr);
String inputLine;
while ((inputLine = in.readLine()) != null){
//AIGTraceLog.log(componentName,Level.INFO,inputLine);
hhResponse = hhResponse+inputLine+"\n";
System.out.println(hhResponse);
in.close();
catch (IOException e) {
System.err.println(e);
}Thanks for the reply. I think I am close, based on your instruction, I did the following but still got the same error.
C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
C:\Program Files\Java\j2re1.4.2_13>keytool -import -alias testDPWS -file TestDpClSsl.crt
Enter keystore password:
Enter keystore password: password
Owner: CN=TestDpClSsl
Issuer: CN=TestDpClSsl
Serial number: 2dd2d12e
Valid from: 12/1/10 4:37 PM until: 12/1/11 4:37 PM
Certificate fingerprints:
MD5: 3A:89:FE:76:BC:30:BF:F0:87:31:F5:14:29:07:60:91
SHA1: 40:71:51:4C:84:BD:08:40:A6:7D:60:A8:A8:04:BA:09:B7:E5:C9:A4
Trust this certificate? [no]: y
Certificate was added to keystore
C:\Program Files\Java\j2re1.4.2_13>java com.mypack.testdpws.TestDPWS
javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate not Trusted
Any idea ? or do I need to add something in the test program ? -
Java Proxy Client !!
Hi Guys,
I need clarification in regards with " JAVA CLIENT PROXY"
Questions
1) Well for sender (client proxy -- JAVA) what is the CC configuration ? Do we need Sender Agreement?
2) After i have used the ZIP file in the NWDS and deployed in the JAVA J2EE Server of XI , how to call this ??
3) What kind of code should i use to invoke the proxy ? kindly elobrate this with some links as am new to JAVA development?
4) Any walkthrough of the entire process would be helpful>
kind:ly share u r thoughts on "JAVA CLIENT PROXY"
ThanVenkat
Pls. go through the PDF " How to Work with JAVA Proxy " which will give lot of insight what all requirements & configuration you need to develop Proxy scenario.
Also go through the document named " Creating First J2EE Application using Dev Studio ".
All of your questions will be answered by these 2 docs.
Rgds
Lalit -
I write a EJB client to call the deployed java proxy, but I got the following exception, sounds like
authorization error, but I have already used the xiappluser to access.
Exception in thread "main" com.sap.aii.proxy.xiruntime.core.BaseProxyException:
Error sending MS message. Exception: Received HTTP response code 401.
at com.sap.aii.proxy.xiruntime.core.AbstractProxy.send$(AbstractProxy.ja
va:146)
Here is the my code:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sap.engine.services.jndi.InitialContextFactoryImpl");
p.put(Context.PROVIDER_URL, "<sid>:50104");
p.put(Context.SECURITY_PRINCIPAL, "xiappluser");
p.put(Context.SECURITY_CREDENTIALS, "****");
Context ctx = new InitialContext(p);Hi,
We have the almost the same problem, we write a Java Application to call the deployed java proxy, but I got the following exception:
...com.sap.aii.proxy.xiruntime.core.BaseProxyException:
Error sending MS message. Exception: Received HTTP response code 404: Not found.
Anyone have an idea what's happing?
Regards,
Luis Diego -
How to run a pure java application client with ear deployed on 9ias
Hello all,
We want to run a pure java application client which is packed with target bean in the same ear file. In the application-client.xml we refer to some EJBs.
We deployed the ear file which contains ejb jar module and application client module to oracle 9ias 904 through enterprise manager on unix. The jndi.properties we used looks like this
java.naming.factory.initial=com.evermind.server.rmi.ApplciationClientInitialContextFactory
java.naming.provider.url=opmn:ormi://opmn_host:opmn_port:oc4j_instance_name/application_name
java.naming.security.principal=test
java.naming.security.credentials=test
Is there anybody knows how to run such an application client? Do we need to provide such a jndi.properties or not at all?
Thanks,
9ias userRefer OpenEJB User - Oracle ADF Essential and TomEE+
Also refer Bug in tomee 1.5.2. Fixed in 1.6.
https://issues.apache.org/jira/browse/TOMEE-756 -
Abap proxy client and https webservice
Hi, I have a problem with an abap proxy client.
This proxy works perfectyl when I call the test webservice (via HTTP protocol) but it does not work if I try to call the productive webservice (via HTTPS protocol). Of course I have configured LPCONFIG in order to let the proxy point to the correct web site.
I'm pretty sure that problkem is caused by different protocols HTTP vs HTTPS.
I thought the problem could be the web site certificate, so I added it into the PSE (transaction STRUST) but nothing happnes.
Your help is really appreciated.
Edited by: robcom69 on Feb 22, 2010 3:34 PM
Edited by: robcom69 on Feb 22, 2010 3:35 PM
Edited by: robcom69 on Feb 22, 2010 3:49 PMI have loaded the certificate in the TRUST transaction.
Anyway, in our system we do not have the SAPCRIPTOLIB libraries and I do not underastand if they are necessary or not.
I mean, I need these libraries only if I expose an HTTPS server from SAP or even if SAP is the client and it need to access an external https webservice ?
Please help. -
Change Business System for Java Proxy Client
I have created Web AS Java business system for Java proxy.
Is it possbile to send message from client Java Proxy as another business system (Third party)?
For example to specify this system
MessageSpecifier messageSpecifier = proxy.$messageSpecifier();
messageSpecifier.setSenderService("MY_BUSINESS_SYSTEM");
proxy.$messageSpecifier(messageSpecifier);Yes, it is.
That's the way to do it.
Stefan -
I am not able to invoke a web service deployed on WebLogic 8.1 SP2 via a client using the proxy jar provided by WebLogic's JWS > Overview > Generate Java Proxy tool.
I am getting a java.net.ConnectException.
Both the client and the WebService are on the same server.
Thanks!!
Inder./Please see the instructions below. If this does not help, please open a case with customer support and tell them it may be related to CR235479
DESCRIPTION:
When a platform domain is created, the admin server can be started without
any issues and a managed server can also be started without any errors if
using startManagedWebLogic.sh. But when a managed server is started using the
nodemanager, the managed server fails to start with the following error.
The WebLogic Server did not start up properly.
java.lang.NoClassDefFoundError: com/bea/wsrp/util/debug/Debug
(Complete stack trace with be added as a note)
The reason for this is that:
startWebLogic.sh(cmd) and startManagedWebLogic.sh(cmd) for platform domains
call <User domain>/setDomainEnv.sh which includes all the jars necessary for
a platform domain in the CLASSPATH.
Whereas startNodeManager.sh calls <WL_HOME>/common/bin/commEnv.sh, which is
the same for both platform and server installations of weblogic and has only
weblogic.jar in the CLASSPATH.
Looking at historical cases, the steps to start NodeManager successfully in a
platform domain are:
1.
a. Copy admin server classpath (from <user Domain>/startWebLogic.sh) to
that of all managed servers in the 'Remote Start' tab of the WLS Console
OR
b. Copy admin server classpath to <WL_HOME>/server/bin/startNodeManager.sh
(If the same nodemanager is used to manage server domain servers and platform
domain servers, will there be any issue with this approach??)
2. Copy the wsrpKeystore.jks file from your domain directory to the
nodemanager directory (the parent of the directory where all the server
directories are replicated in the node manager. By default: <WL
HOME>/common/nodemanager)
But these steps are not publicly documented in edocs.
CONFIGURATION:
Weblogic Platform Domain 8.1 (all service packs)
WORKAROUND:
Steps 1 and 2 above. -
How can I send a xml via HTTP Sender from a Visual Basic 6.0 application? Do I have to use an ActiveX Control to send the HTTP Request with the XML as payload?
Thanks in advance,
Ruben.Ruben,
You need to create your interface objects in the integration repository and setup your interfase using SOAP adapter in the integration directory.
After that you'll need to publish a webservice using the integration builder objects that you have already created.
Mount the WSDL into a web server and try to implement a webservice call into your VB application to invoke the WS.
read this blog:
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1442 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]
i hope it helps you...
BR,
Gerardo.
Plz reward points -
Setup the proxy client with username/passwd
Hi all,
I need to configure the proxy client on my arch (without X), but with username and password. How can i do this?Hi all,
I need to configure the proxy client on my arch (without X), but with username and password. How can i do this? -
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
Andreamartin 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 -
Java webservice client with windows domain authentication
I'm writing (well attempting to) a Java web service client using netbeans that consumes a web service written in C#, that uses NTLM authentication.
If I consume the webservice from a .NET client, authentication isn't a problem; I can just pass the crediantails in on an engine object.
eg engine.Credentials = System.Net.CredentialCache.DefaultCredentials.
Upon consuming this webservice in java the Credentials method doesn't appear on the engine object like it doesn't with it's C# counterpart.
I assume that Java goes about a different way of doing windows domain authentication?
Cheersfor what ever reason it just seemed to start working.
-
HI all!
I send a http request from Oracle :
HTTP_REQ := utl_http.BEGIN_REQUEST(ReqString);
utl_http.WRITE_TEXT(HTTP_REQ, Payload);
--getting response
HTTP_RESP := utl_http.GET_RESPONSE(HTTP_REQ);
utl_http.READ_TEXT(HTTP_RESP, Response);
utl_http.END_RESPONSE(HTTP_RESP);
In PI in SXMB_MONI I have an error :
<SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
<SAP:P1>com/sap/xi/tf/_MM_HR_HUMAN_</SAP:P1>
<SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException:</SAP:P2>
<SAP:P3>Fatal Error: com.sap.engine.lib.xml.parser.ParserE</SAP:P3>
<SAP:P4>xception: Unsupported character: bf(:main:, row:7~</SAP:P4>
<SAP:AdditionalText />
<SAP:Stack>Runtime exception occurred during application mapping com/sap/xi/tf/_MM_HR_HUMAN_; com.sap.aii.utilxi.misc.api.BaseRuntimeException:Fatal Error: com.sap.engine.lib.xml.parser.ParserException: Unsupported character: bf(:main:, row:7~</SAP:Stack> ...
How can I resolve this problem?
Regards,
AndreyHi,
I have a scenario like Oracle (9i) - SAP PI - Oracle (10g). I want to impliment this scenario by using the SOAP sender - SAP PI - JDBC receiver. i.e. i will generate the WSDL file in PI.
I dont know how to consume the web service in Oracle 9i database. I think you have done the same scenario.
Requesting you to share the same and will be appreciate if you give me step by step information.
Thanks in Advance
Regards
Jagesh
Maybe you are looking for
-
Clickable UI element in a table tree as a child
Hi experts, I haev created a tree in a table column. And in a treebykeytable coumn of a table, what type of cell editor can be included so that we can capture a event on a click of it. I.e once a child is clicked- I want to caoture the value of child
-
The app is named "in-box". It has become a part of "firefox" I was trying to print a map off the web and a window popped up saying I needed in-box to do it right. I left the site, immediately, but it downloaded to my computer. I closed the download w
-
Blinking latch light is coming on during work
Hi. I've read some older threads about the PowerBook G4 and how it's sleep indicator light behaves erratically. Mine (PowerBook G4 15 inch Aluminum 1.25 Ghz) has recently started flashing the sleep light while I'm working. My questions are: Is this n
-
often times when I have iTunes open in cover flow view and switch to another window using Exposé cover flow goes all whack (see photo). Has anybody else had this problem? What can I do about it? http://img221.imageshack.us/img221/8260/picture1lk8.png
-
Problems using ActionDescriptor class on PS Flash panel
I'm making a PS CS5 panel with Flash Builder 4. I want to handle 'New document' event from PS in my panel. With 'Adobe Photoshop Panel Developer's Guide' I found all I need to install and handle the event..... but I receive a callback for all class