Web Service in BSP
Hi All,
I need to get the datas from .NET and display it in BSP Appliaction. The Web service already available for this at .NET. Can some body help me out how i can use the Web-Service in BSP.
Thanks in advance.
Raja T.
Hi,
As per your need i am posting my code here.
*& Report ZWEB *
REPORT Y_CONSUME_WEBSERVICE
DATA: wf_user TYPE string .
DATA: wf_password TYPE string .
TYPES: BEGIN OF outtab1 ,
airportcode(6) ,
cityofairportname(50),
country(30) ,
countryabbrivation(10),
countrycode(6) ,
gmtoffset(10) ,
runwaylengthfeet(15),
runwayelevationfeet(15),
latitudedegree(10) ,
latitudeminute(10) ,
latitudesecond(10) ,
latitudenpeers(10) ,
longitudedegree(10) ,
longitudeminute(10) ,
longitudeseconds(10) ,
longitudeeperw(10) ,
END OF outtab1 .
DATA: outtab TYPE TABLE OF outtab1.
DATA: TAB TYPE OUTTAB1.
DATA: wf_o LIKE LINE OF outtab .
DATA: xslt_err TYPE REF TO cx_xslt_exception .
DATA: rlength TYPE i,
txlen TYPE string .
DATA: http_client TYPE REF TO if_http_client .
DATA: wf_string TYPE string .
DATA: wf_string1 TYPE string .
data: wf_proxy type string ,
wf_port type string .
selection-screen: begin of block a with frame .
PARAMETERS: country(132) TYPE c LOWER CASE .
SELECTION-SCREEN SKIP 1.
PARAMETERS: user(50) LOWER CASE,
password(50) LOWER CASE ,
p_proxy(100) LOWER CASE default 'SAPLNT.KOMATSU.COM' ,
p_port(4) default '80'.
selection-screen: end of block a .
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'PASSWORD'.
screen-invisible = '1'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
start-of-selection .
CLEAR wf_string .
CONCATENATE
'<?xml version="1.0" encoding="utf-8"?>'
'<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">'
'<soap:Body>'
'<GetAirportInformationByCountry xmlns="http://www.webserviceX.NET">'
'<country>' country '</country>'
'</GetAirportInformationByCountry>'
'</soap:Body>'
'</soap:Envelope>'
INTO wf_string .
CLEAR :rlength , txlen .
rlength = strlen( wf_string ) .
MOVE: rlength TO txlen .
clear: wf_proxy, wf_port .
move: p_proxy to wf_proxy ,
p_port to wf_port .
CALL METHOD cl_http_client=>create
EXPORTING
host = 'www.webservicex.net'
service = '80'
scheme = '1'
proxy_host = wf_proxy
proxy_service = wf_port
IMPORTING
client = http_client.
http_client->propertytype_logon_popup = http_client->co_disabled.
wf_user = user .
wf_password = password .
proxy server authentication
CALL METHOD http_client->authenticate
EXPORTING
proxy_authentication = 'X'
username = wf_user
password = wf_password.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~request_method'
value = 'POST'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~server_protocol'
value = 'HTTP/1.1'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = '~request_uri'
value = '/airport.asmx'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'Content-Type'
value = 'text/xml; charset=utf-8'.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'Content-Length'
value = txlen.
CALL METHOD http_client->request->set_header_field
EXPORTING
name = 'SOAPAction'
value = 'http://www.webserviceX.NET/GetAirportInformationByCountry'.
CALL METHOD http_client->request->set_cdata
EXPORTING
data = wf_string
offset = 0
length = rlength.
CALL METHOD http_client->send
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2.
CALL METHOD http_client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3.
CLEAR wf_string1 .
wf_string1 = http_client->response->get_cdata( ).
REPLACE ALL OCCURRENCES OF
'<' IN wf_string1 WITH '<' .
REPLACE ALL OCCURRENCES OF
'>' IN wf_string1 WITH '>' .
REPLACE ALL OCCURRENCES OF
'xmlns=' IN wf_string1 WITH 'xmlns:xsl=' .
TRY .
CALL TRANSFORMATION (`Y_AIRPORT_XML2ABAP`)
SOURCE XML wf_string1
RESULT outtab = outtab.
CATCH cx_xslt_exception INTO xslt_err.
DATA: s TYPE string.
s = xslt_err->get_text( ).
WRITE: ': ', s.
STOP.
ENDTRY .
Loop at outtab INTO TAB.
Write:/ TAB .
Endloop .
*-Y_AIRPORT_XML2ABAP----
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:output indent="yes"/>
<xsl:template match="NewDataSet">
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<OUTTAB>
<xsl:for-each select="Table">
<OUTTAB1>
<AIRPORTCODE>
<xsl:value-of select="AirportCode"/>
</AIRPORTCODE>
<CITYOFAIRPORTNAME>
<xsl:value-of select="CityOrAirportName"/>
</CITYOFAIRPORTNAME>
<COUNTRY>
<xsl:value-of select="Country"/>
</COUNTRY>
<COUNTRYABBRIVATION>
<xsl:value-of select="CountryAbbrviation"/>
</COUNTRYABBRIVATION>
<COUNTRYCODE>
<xsl:value-of select="CountryCode"/>
</COUNTRYCODE>
<GMTOFFSET>
<xsl:value-of select="GMTOffset"/>
</GMTOFFSET>
<RUNWAYLENGTHFEET>
<xsl:value-of select="RunwayLengthFeet"/>
</RUNWAYLENGTHFEET>
<RUNWAYELEVATIONFEET>
<xsl:value-of select="RunwayElevationFeet"/>
</RUNWAYELEVATIONFEET>
<LATITUDEDEGREE>
<xsl:value-of select="LatitudeDegree"/>
</LATITUDEDEGREE>
<LATITUDEMINUTE>
<xsl:value-of select="LatitudeMinute"/>
</LATITUDEMINUTE>
<LATITUDESECOND>
<xsl:value-of select="LatitudeSecond"/>
</LATITUDESECOND>
<LATITUDENPEERS>
<xsl:value-of select="LatitudeNpeerS"/>
</LATITUDENPEERS>
<LONGITUDEDEGREE>
<xsl:value-of select="LongitudeDegree"/>
</LONGITUDEDEGREE>
<LONGITUDEMINUTE>
<xsl:value-of select="LongitudeMinute"/>
</LONGITUDEMINUTE>
<LONGITUDESECONDS>
<xsl:value-of select="LongitudeSeconds"/>
</LONGITUDESECONDS>
<LONGITUDEEPERW>
<xsl:value-of select="LongitudeEperW"/>
</LONGITUDEEPERW>
</OUTTAB1>
</xsl:for-each>
</OUTTAB>
</asx:values>
</asx:abap>
</xsl:template>
</xsl:stylesheet>
Raja T.
Similar Messages
-
Hi everybody,
I'm not a BSP developer.
Mayby a very easy question, mayby also stupid, but I couldn't find any information about this topic so far. Can I consume Web Services in BSPs ?.
Regards
PeterYou can consume web services in BSP. Find below link to achieve:
Re: Consuming WebService, + SOAP HEADER AUTH:
<i>*Reward each useful answer</i>
Raja T -
Error in E-rec web Service and BSP
Hi Folks
We are facing an issue with Requisition Management in E-rec. A workflow is triggered for requisition management and goes to approver. The workitem does not appear in the UWL of the user however when we monitor the log, it shows the workitem is with approver and without any error.
Our problem is it does not show the workitem in the approver's UWL and when we test the approval serivce and handler service in SICF, it gives us the following message
1.Service Name : wshandler (REQUEST HANDLER FOR WEB SERVICES)
Error in Web service execution
The launch handler was called with an incomplete parameter list
2.Service name : hrrcf_approval (Recruiter: Approval of Status Change)
Error message : Calling the BSP page was terminated due to an error.
SAP Note
The following error text was processed in the system:
BSP Exception: Das Objekt default.htm in der URL /sap/bc/bsp/sap/hrrcf_approval/default.htm?sap-client=100&sap-sessioncmd=open ist nicht gültig.
Please guide us, how to fix.
Regards
Netweaver teamHi, Were you able to resolve this issue?
IF not then please go to transaction wf_handcust and maintain the entries under Launch Handler, Callback Handler and callback Dialog. I had the same issue and your's was the only related message I could search in SDN so thought of sharing the solution.
Regards,
VInay -
Calling Web Service from a BSP
Has anyone successfully called one of the Google search engine web services from <b><u>6.20</u></b>? Or any external, non-R/3 web service for that matter? When I run test connection on a RFC destination type G (HTTP connection to External Server), it returns ICM_HTTP_CONNECTION_FAILED message. I am using api.google.com for Target Host and /search/beta2/ for Path Prefix; all other fields are blank/default. I was able to setup the RFC destination for type H (HTTP connection to R/3 system) correctly and run the sample ABAP web service client program (from SAP Help which calls STFC_CONNECTION).
Any help will be appreciated.
Thanks, PradeepDoes your company use an Internet Proxy? Have you setup the global or RFC specific proxy settings?
This is what we had to do. We were calling a psedo webservice in 620 via HTTP Client methods and we had to setup the Proxy settings.
See the following weblog for details:
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
But keep in mind that even if you are able to make the connection that the WebService will most likely require a SOAP response and request. There are some ways to do this in 620, but it is a lot of development on your part and it is not forward compatible with 640. In 640 you can generate Proxy Classes - which makes calling external webservices very easy. -
Consuming a web service from a BSP page
Hello
Here is the description of the different instances :
ERP is running on an instance without J2EE engine
EP is running on an instance with J2EE engine
I create a web service definition, VI, and proxy classe on ERP.
I tested the web service using WSADMIN where I put as J2EE server the J2EE engine on the EP instance : it works.
I created a BSP application to consume the web service, when I try to reach the web service I've the error Unallowed RFC-XML Tag (SOAP_EINVALDOC) .
I guess it doesn't work because I ve got no J2EE engine linked to my ERP system, but as the netweaver plateform is new for us my question is : How can I define in ERP that I use the J2EE engine from EP ?
Thankshi
in your wsdl file find this
tag
<wsdl:service name="SendSMS">
inside it
you have a tag for soap port like this
<wsdl:port name="SendSMSSoap" binding="tns:SendSMSSoap">
<soap:address location="http://localhost/<Web service path>" />
</wsdl:port>
<wsdl:port name="SendSMSHttpGet" binding="tns:SendSMSHttpGet">
<http:address location="http://localhost/<Web service path>" />
</wsdl:port>
<wsdl:port name="SendSMSHttpPost" binding="tns:SendSMSHttpPost">
<http:address location="http://localhost/<Web service path>" />
</wsdl:port>
here replace localhost with the address of the server where the web service lies
like i mentioned
<server ip>
i hope this will work out
regards -
How to access the Web Service Browser
Hi,
I need to access the Web Service Browser to generate a Web Service Description.
How can I do it?
I use the follow url:
http://<host_name>:<port_number>/sap/bc/bsp/sap/WebServiceBrowser/search.html?sap-client=<relevant_client>
but I can't say how to determine values for the three placeholders.
Help me please.
THANKSHi Andrea,
you can access the web services in sap transaction SICF. Then right click on the
service and choose "test". The hostname is the host on where the sap system
runs.
The port ´number can be seen in transaction SMICM -> shift + F1. Here you can see
the portnumer assigned to the HTTP protocol.
And the client is the sap client (standard client) for which the service is configured.
Hope this helps.
KR,
Andreas -
Issue with SSL in web service.
Hi All,
We are having synchronous web service to proxy scenario in XI. We are trying to send a binary data using the SOAP web service to SAP via XI. Initially, we were posting large binary data using HTTP connection via XI from the SOAP client. The scenario was working without any issues.
Since the data is sensitive changed the web service from HTTP to HTTPS.The interface works without issues when we test it using the SOAP client for testing. When the data is sent using the Dot Net application (the end application) using the same webservice, URL (HTTPS connection) the message errors out. The connection is borken and the message fails. In this scenario, XI does not even receive the message which I can make out looking into the SOAP adapter communication channel.
The interesting fact here is the same Dot Net application is able to connect and send smaller binary data using HTTPS connection.
Could you please let us know if this could be the issue with HTTPS connection on XI side? I doubt it to be an issue on XI side because the adapter does not even receive any message when the scenario fails. But we used some HTTPS monitoring tools and found that the Dot Net Application receives some encrypted response from the server which the application is not able to decrypt and the handshake breaks.
Could you please throw some inputs into this issue.
Thanks,
Manohar.Hi Manohar
You have posted the same question with two different subject text
anyway follow these SAP notes your problem will be short out
Note 856597 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 SOAP Adapter
https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856597&_NLANG=E
Note 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856599&_NLANG=E
Note 870845 - XI 3.0 SOAP adapter SSL client certificate problem
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=916664&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=870845&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
check the OSS Note 554174 & see if it helps
Note 645357 - SAPHTTP: SSL error
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=645357&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1150980&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
one alternative may be Restart ICM (Internet Communication Manager) .This will solve your HTTP issue
Cheers!!!!
Regards
sandeep
if helpful kindly reward points -
Problem while opening the Web Service Homepage
Hi All,
I have created a Web Service and in Tcode WSADMIN , I am trying to open the Web Service Homepage (Ctrl+F8) and getting an error message "Could not determine WSDL Address(ICF Error)".
Please suggest...
Regards
PraveshHi,
In transaction SICF
<b>/sap/bc/bsp/sap/learning_map</b>
Choose Activate Service from the context menu.
Also refer this thread.
Solution Manager Learning Map http error 403
Regards,
Sarvesh -
Calling a Web Service Through Custom iView
Hi All,
I have to create a Custom iView that would call a Web Service that is available over internet. This web service returns data in form of an XML file and have to display this file.
It means that I have to create a Portal Application and call web service in that application and parse the XML file that this web service returns and finally display the parsed XML file in an iView.
Can anybody please help me on this?
Thanks,
VivekHi Vivek,,,
To consume the webservice u need to start with getting the wsdl of it..
these links nd easy to follow weblogs are kool ..,
check out
BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
Accessing an External Web Services in Portal
Developing single document WSDL to schedule a web service
The specified item was not found.
http://help.sap.com/saphelp_bw33/helpdata/en/68/d4623c046a9b67e10000000a11402f/frameset.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/81/12703e5da3e946e10000000a114084/content.htm
Cheers..,
Swathi
Do offer pts nd ncourge:-)
ping ur mailid will give u screenshot tutorial on this .. -
Support message from satellite to SolMan throughout web service
Hi all,
Currently we have activated support messages between satellite systems and SM. This functionallity is working fine; users create messages with "help->create customer message". But now we want users to create messages trhoughout web service (bsp). We know that this funcionallity exists, but we don't know neither the way it can be activated nor the way we can access to this service.
Any idea?
Thanks in advance.
Bst Regds,
Jose SorliHi Jose,
For the creation of messages via WEB you can use BSP dswp_create_msg:
In SICF activate this service
After call the following url:
http://server:XXXX/sap/bc/bsp/sap/dswp_create_msg?sap-client=YYY
server: full hostname server of solman system
XXXX: HTTP service that you can see in SMICM->Goto->Services
YYY: Service desk client
Look in SAP SMP for notes with string dswp_create_msg.
From note 699087 ( a little old but ok):
For the application to function, perform the following in the Solution
Manager system:
o Ensure that an HTTP or HTTPS service is running in the Internet
Communications Manager (transaction SMICM).
o Ensure that the services necessary for running BSP applications
are activated (transaction SICF). These services include:
- /default_host/sap/public/bc/ur
- /default_host/sap/public/bsp/sap/htmlb
- /default_host/sap/public/bsp/sap/public/bc
- /default_host/sap/bc/bsp/sap/dswp_create_msg
The URL necessary to call dswp_create_msg takes the following form:
o http://<host>:<port>/sap/bc/bsp/sap/dswp_create_msg?sap-client=
<client>
Where <host>, <port> and <client> are the host name, port and client
respectively of the SAP Web Application Server. For futher information
on the Internet Communications Manager, please see the SAP Web
Application Server online documentation.
Best regards,
Dolores -
Pointers regarding consuming a external web-service from SAP
Hi All,
I am trying to consume a web-service from an external system using a URL.
Our SAP system version is 4.7. I have created a custom program and calling up the web service using HTTP POST method.
For this I referred the following weblog.
https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/847. [original link is broken] [original link is broken] [original link is broken]
I modified the program according to my requirements and called the web service, but I am facing certain issues.
1. The if_http_client->send method executed successfully (sy-subrc eq 0). But the next call to the method
if_http_client->receive the program shows error.The message is very long one and I am not able to see it fully in debugging mode.
Please help me with the following questions.
1. Is there any way I can read the message returned from the web-service to see what the error was? In 4.7 we don't have the recording function as in 6.0.
2. I have disable the login prompt by calling if_http_client->propertytype_logon_popup = http_client->co_disabled.
If I don't do that it shows me a SAP Web AS login screen. Shouldn't it show me the standard http login screen?
3.In that login screen if I provide my ID password it returns the following message
'Business Server Page (BSP) ErrorBSPexception:Access to URL :<Server>:<80>/ORABPEL/DEFAULT/READDATA1/1.0 is forbidden'
Any pointers what does it mean?
4. This method seems a very lengthy process to me. Is there any other approach to this issue?
TIA
Barada.The error for Authorization was because of the HTTP proxy settings for the system.
I configured the proxy settings in the transaction SICF->Goto->Http Proxy and then the program worked fine.
Regards
Barada -
Generate XML file from RFC using Web Services
Hi,
I am trying to save an RFC enabled Function Module output to an XML file using ABAP web services.
I could able to create Web Service and release it using WSCONFIG/WSADMIN. I can actually get the output in XML file when i launch the web service home page. But I need this to be done in the ABAP program itself. So If i run the RFC I could able to create,release web service and capture the Generated XML file by SOAP runtime.
Any FM available?
Thanks,
Ram Sanjeevwhich version of WAS you are on .
if you are on WAS6.40 check the following weblog on how to consume webservice using the wsdl file.
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
lower version of WAS use class cl_http_client.
if this case you have to manually build the soap message.
/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap
Regards
Raja -
Issue with Siebel Inbound Web Service
Hi pals,
I have to make an Inbound Web Service that accept one Service Request, Insert the record in siebel's database and return the SR Number.
I did an Integration Objects with the fields that I need, but I'm stuck with the workflow's steps, I did the next Workflow.
Start-- EAI DATA MAPPING ENGINE---EAI SIEBEL ADAPTER (Insert)--END
But I'm not sure if this will work.
Anybody could you help me telling me if this steps are ok or If I need some more steps. Which are the arguments that have to be involved in the steps.
Another issue is that I don't know if is it possible do the test since its a web service and I don't have the consumer system.
Thanks for the help.
Edited by: user8035855 on 16/11/2009 11:43 AMHi Manohar
You have posted the same question with two different subject text
anyway follow these SAP notes your problem will be short out
Note 856597 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 SOAP Adapter
https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856597&_NLANG=E
Note 856599 - FAQ: XI 3.0 / PI 7.0 / PI 7.1 Mail Adapter
https://websmp102.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=856599&_NLANG=E
Note 870845 - XI 3.0 SOAP adapter SSL client certificate problem
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=916664&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=870845&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
check the OSS Note 554174 & see if it helps
Note 645357 - SAPHTTP: SSL error
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=645357&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1150980&nlang=EN&smpsrv=https%3a%2f%2fwebsmp102%2esap-ag%2ede
one alternative may be Restart ICM (Internet Communication Manager) .This will solve your HTTP issue
Cheers!!!!
Regards
sandeep
if helpful kindly reward points -
Issue in creating web service for a ABAP Function Module
Hi,
now i'm learning how to create web service for a ABAP Function Module. I used the following steps.
1. select the Function Module, named "zws_test".
2. in the context menu, select "create->proxy object". so we enter into wizard.
3. in the wizard, press the radio button "Service Provider".
4. in the next page, press the radio button "Existing ABAP Objects(Inside Out)".
5. In the next page, Enter the "zws_test_prvider" as Service Definition and select "Function Module" as Endpoint Type.
6. in the next page, enter "zws_test" as Function Module and mark the "Mapping der Namen" button
7. in the next page,select "PRF_DT_IF_SEC_LOW" as Profile and mark "Deploy Service".
8. Save in the local package.
9. then it will pop up a window with title "WSDL Source". i selected "URL/HTTP Destination" and press "OK".
10.in the next page, i enter the URL as "http://hostname:portnumber/", and press "OK".
11. then it will pop up a window with title "Display logs". A record with error message "HTTP error(return code 404, message "Not found")" appears.
12. i press "ok" and a service provider with name "zws_test_prvider" appears in my local package.
13. i use "zws_test_prvider"'s URL to create a service consumer "ZCO_WS_TEST_CONSUMER" and logic portal "LP1".
14. But when i test my service consumer "ZCO_WS_TEST_CONSUMER", it will throw an exception "cx_ai_system_fault" with errortext "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/".
15. I use t-code SM59 to test connection and get the following info.
Status HTTP Response 200
Status Text OK
Duration Test Call 328 ms.
who can give me the reasons about item 11 and 14, and explain me how to create service provider and service consumer for a Function Module.
Thanks in advance
Johnneyhave you seen this weblog
/people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices -
Consuming a Web Service with WEB AS 6.40
Hello,
i try to consume a Webservice from the internet. I have configured the logical port and i created the client proxy as shown in the following real good weblog from
Thomas Jung.
/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap
But when i try to test the proxy in SE80 I retrieve the following error:
<CODECONTEXT>http://www.sap.com/xml_errorcodes</CODECONTEXT>
<CODE>SOAP:111</CODE>
<ERRORTEXT>Unallowed RFC-XML Tag (SOAP_EINVALDOC)</ERRORTEXT>
What's wrong here? Someone can help me?
Thanks for your help!
KlausWe had the same error message for one of our Proxy Web Service calls.
We tried to use an RFC instead of the URL, and performed a TEST CONNECTION. And low and behold, we received an error message that was much more helpful than the "Unallowed RFC-XML Tag (SOAP_EINVALDOC)" message.
The problem for us was that the Server that we were trying to consume the Web service from was blocking the IP address of our Web Application Server.
We contacted the administrator, he verified that was the case, removed the restriction, and all is good now.
Here was the message we saw when we tested it in the RFC:
The Web server you are attempting to reach has a list of IP addresses that are not allowed to access the Web site, and the IP address of your browsing computer is on this list. Please try the following: Contact the Web site administrator if you believe you should be able to view this directory or page.
Hope this helps!
Maybe you are looking for
-
Windows 8.1 on MacBook Pro?
Do I just purchase a regular copy of Windows as well as Office and use bootcamp to install or do I have to find Is there a better way than bootcamp? I need both for the school I will be attending. I'm running a MacBook Pro late 2012, 4gb divided into
-
Hi Please guide me what is the table name for FBL3N, we want GL data from table. Thanks Rama
-
Java error in XP (URGENT)
HI all, I am working on a 3 tier software and it is running fine on all machines except one "The XP Machine", The problem is when i m going tru http://appserv:13000 it starts executing but in between an error comes that shows that some java thread or
-
Quality of still images imported from i-Photo
I've recently got a new Mac, with updated version of i-Movie. Struggling to come to terms with it, but one major problem is quality of still images. Whatever I do, they look rubbish in i-Movie. I've tried all sorts of settings, Ken Burns etc, still n
-
what am I missing here? The PDF in question can be found here: http://wndw.net/ The PDF has a Creative Commons license saying I can: "Copy, distribute and display the book. Make derivative works, including books and articles. Make commercial use of t