on 01-24-2005 3:35 PM
Hello,
I have installed the Plain J2SE Adapter Engine.
On the Adpater Engine running a SOAP Adapter.
When i try to test the Adapter i become following error Message:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at com.sap.aii.messaging.net.ClientHttpImpl.call(ClientHttpImpl.java:146)
at com.sap.aii.messaging.adapter.SinglePayloadClient.doPost(SinglePayloadClient.java:222)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.aii.messaging.adapter.Zone.service(ModuleGUIBrowserEngine.java:1073)
at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:371)
any idea?
Regards,
Robin
Hi Robin,
could you post the SOAP Adapter module settings?
Do you want to call a WebService from XI or do you want to use the SOAP Adapter as WebService for a local client?
Are all URLs correct? Do you need a proxy server? Are all User and Password for WebService, Proxy Server and XI set correctly?
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stefan,
SOAP Adapter module settings:
-
Bubble adapter java class
classname=com.sap.aii.messaging.adapter.ModuleBubble
#
This adapter instantiates a bubble bag for supporting
a xmb web service gateway. A bubble bag is a collection of Bubble
instances that form some processing chain of message objects.
#
Below parameter Bubble.Helper specifies the helper class that implements
the ModuleBubbleHelper interface. This class is used to instantiate
a bubble bag for this adapter.
#
#
Sets the bubble module helper that can instantiate your bubble bag
Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperXMBWSImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Below this line are the parameters specific to the ModuleBubbleHelperXMBWSImpl
#$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
The configuration of this helper class is divided in two parts. The first part
specifies the adapter configuraton for Web-Service clients communicating with an
XMB server. The second part specifies the configuration for XMB clients
communicating with a WebService server. Either one or both parts can be configured
in a single configuration file.
Part 0 (FromWS and ToWS) : common part ######
Keeps the XMB headers in web service messages
XMBWS.KeepHeaders=true
Keeps the attachments in web service messages
XMBWS.KeepAttachments=false
Encodes the xmb headers into a special HTTP header string x-xmb_ws_encoded
XMBWS.UseEncoded=false
Part 1 (FromWS) : WS clients to XMB server ######
The target URL of XMB broker, to which the adapter sends XMB messages.
XMB.TargetURL=http://netweaver:8000/sap/xi/engine?type=entry
The port and path where the adapter waits for web service messages from clients.
XMBWS.WSPort=4444
XMBWS.WSPath=/soap/start
The following XMB attributes are used to fill default XMB messages.
XMB.SenderBusinessSystem=MOS_BS
XMB.SenderInterfaceNamespace=ns:moskau
XMB.SenderInterfaceName=MOSOut
XMB.QualityOfService=BE
-
now i have an other error message.
-
com.sap.aii.messaging.net.TransportException: HTTP 500 Internal Server Error
http-Response:
content-type: text/xml
content-length: 349
content-id: <soap-048c50d06eb911d9a8b6dabc0ab4bf68@sap.com>
<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Body><SOAP:Fault><faultcode>SOAP:Server</faultcode><faultstring>com.sap.aii.messaging.srt.BubbleException: Can't call the endpoint; Exception raised by com.sap.aii.messaging.net.TransportException: Content-Type not set</faultstring></SOAP:Fault></SOAP:Body></SOAP:Envelope>
at com.sap.aii.messaging.net.ClientHttpImpl.call(ClientHttpImpl.java:337)
at com.sap.aii.messaging.adapter.XMBTestClient.doPost(XMBTestClient.java:236)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.aii.messaging.adapter.Zone.service(ModuleGUIBrowserEngine.java:1073)
at com.sap.aii.messaging.adapter.HTTPRequest.run(ModuleGUIBrowserEngine.java:371)
-
So you want to use the SOAP Adapter as Webservice and send data from a local client to XI.
In your configuration, User, Password and Client of the XI system are missing.
In XI 2.0 the config would be:
XMB.TargetURL=http://netweaver:8000/sap/xi/engine?type=entry
XMB.User=YourUser
XMB.Password=YourPassword
XMB.Client=YourClient
XMBWS.WSPort=4444
XMBWS.WSPath=/soap/start
XMB.SenderBusinessSystem=MOS_BS
XMB.SenderInterfaceNamespace=moskau
XMB.SenderInterfaceName=MOSOut
XMB.QualityOfService=BE
In XI 3.0 you would have:
XI.TargetURL=http://netweaver:8000/sap/xi/engine?type=entry
XI.User=YourUser
XI.Password=YourPassword
XI.Client=YourClient
XMBWS.WSPort=4444
XMBWS.WSPath=/soap/start
XI.SenderService=MOS_BS
XI.SenderInterfaceNamespace=moskau
XI.SenderInterfaceName=MOSOut
XI.QualityOfService=BE
XI.ContentType=text/xml
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now my config like yours for xi 3.0
But now i become always a java.lang.NullPointerException when i try to test the Adapter.
-
version=30
Bubble adapter java class
classname=com.sap.aii.messaging.adapter.ModuleBubble
#Bubble Helper class
Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperXMBWSImpl
XI.TargetURL=http://netweaver:8000/sap/xi/engine?type=entry
XI.User=****
XI.Password=****
XI.Client=010
XMBWS.WSPort=4444
XMBWS.WSPath=/soap/start
XI.SenderService=MOS_BS
XI.InterfaceNamespace=moskau
XI.InterfaceName=MOSOut
XI.QualityOfService=BE
XI.ContentType=text/xml
-
Is there anything to config on XI 3.0 or have i forgotten anything?
Regards,
Robin
[Client(WFETCH)] -> Sends SOAP Messages -> [Plain J2SE Adapter (SOAP)] -> Sends SOAP Messages -> [SAP XI 30]
When in the Config file "XMB.TargetURL=http://netweaver:8000/sap/xi/engine?type=entry" stand, than i become the response "<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'><SOAP:Body><SOAP:Fault><faultcode>SOAP:Server</faultcode><faultstring>com.sap.aii.messaging.srt.BubbleException: java.lang.ArrayIndexOutOfBoundsException: 0 >= 0</faultstring></SOAP:Fault></SOAP:Body></SOAP:Envelope>"
When in the Config file Stands "XI.TargetURL=http://netweaver:8000/sap/xi/engine?type=entry" stand, than the wfetch become the error: "no socket connected"
In XI no messages arrived.
When i type the url in my browser, i see following xml message:
-
SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header />
- <SOAP:Body>
- <SOAP:Fault xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>SOAP:Client</faultcode>
<faultstring>Empty HTTP request received</faultstring>
<faultactor>http://sap.com/xi/XI/Message/30</faultactor>
- <detail>
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIProtocol</SAP:Category>
<SAP:Code area="MESSAGE">EMPTY_HTTP_REQUEST_RECEIVED</SAP:Code>.........
-
I also can ping the XI Server which is in the same local network like "XI 3.0 Adapter Engine Standalone Version"
Is there anything else i have to configure before i see the messages in XI Monitoring ?
User | Count |
---|---|
89 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.