Trying to call a webservice generated by coldfusion
Hi
We are running SAP PI 7.11.
We are trying, from SAP PI, to call a webservice that is created by coldfusion - the target url is called
http:/...../edb_service.cfc?wsdl via the SOAP adapter (RECEIVER)
Our adapter/comm channel fails with a http error 500:
"SOAP_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: invalid content type for SOAP: TEXT/HTML; HTTP 500 Internal Server Error. Setting message to status failed."
It appears that we are not getting any connection at all. When trying to call the webservice from XMLSPY it works fine? Are there any restriction to call a webservice created by coldfusion?
How can I get any better logging of the call attempt, because I can not see anything out of the comm. channel eror message.
Any help would be appreciated.
Thx
Hi
the target url should be http:/...../edb_service.cfc
also mention the correct action.
you would not get the error.
Regards
Monika
Similar Messages
-
SAP PI calling the webservice generated through BRF+
Hi All,
The scenario is
SAP ECC(IDoc) --> PI --> SAP MII
. The data coming from ECC in the IDoc will be in a third party format, but we want MII to receive data in SAP format.
For this we have decided to use BRF. I want to know that how can I use the webservice which we generate from BRF in SAP PI. Which adapter supports calling of webservice or if there is any other section of SAP PI where this transformation can be done using BRF+ webservice? Please help
Thanks,
NehaSinghHi,
The message coming from ECC has values in ISO format and MII needs values in SAP format. For this conversion to happen I need to use the BRF+ and when I raised the same request on "Business Rule Management/BRF+" forum. I got the following reply.
ht[Re: Calling web service generated through BRF+ in SAP PI|Re: Calling web service generated through BRF+ in SAP PI]
Now, Can anyone please help me with answers to following question:
Since my Source Message is an IDoc, I cannot directly use the RFC that will call the Function Module that I require for format conversion,
Can I use RFC Lookup to satisfy the requirement. If yes how to go about it. Actually I am using RFC LookUp for the first time, so the basic steps that we need to follow for RFC Lookup are needed. I went through some Blogs but did not understand how it will be applicable in my case. Please Help
Thanks and Regards,
NehaSingh -
Trying to call a Webservice - "Settings for the J2EE Server do not exist."
Hi, we're on SAP ECC 6.0 and I'm trying to get access to a webservice:
BAPI converted to Webservice ok
Webservice activated ok
http active ok
WSADMIN - click on the WSDL button - browser launches, user id requested, userid given, WSDL displays perfect! Even tested from the outside.
WSADMIN - click on the Web service homepage - Settings for WDSL generation (RPC or Document style, same result) - Error - "Settings for the J2EE Server do not exist."
Internet browesr - I go to the URL for the WSDL - works again perfect!
Internet browesr - I go to the URL - error ! <faultstring xml:lang="en">SOAP processing failure, error id = 112 </faultstring>
Are the two errors the same?
Do I have to have a J2EE server to enable Webservices?
Is this a complex system change?
Is there a workaround?
Thanks for any tips on getting Webservice to function
Philiphi,
when the WAS ABAP has a webserver running and the WSDL service up and running (WSDLs are created dynamically) you get the WSDL served from WAS ABAP.
"Webservice homepage" is an application written in Java and running on WAS Java., So, if you want to use that application you have to have a WAS JAVA up and running, you have to have the application 'Webservice homepage' up and running and of course on WAS ABAP you have to have the URL of the WAS JAVA specified to enable the WSADMIN function to link you to the Java app.
Most probably you do not even have a WAS Java running and/or the application 'webservice homepage" not set up. Either way, in my opinion the application "webservice homepage" is crap anyway (because it is not really independent. if SAP implements something strangely on the server side they of course implement it the same way on the client/testing side, so you never find out that in real world scenarios e.g. no client understands the feature X the way SAP implemented it). use any non-SAP-tool to test your SAP webservices, e.g. XML Spy, or SOAPUI.
my 2 cents,
anton -
Calling a WebService from servlet
Hello,
When i am trying to call my WS(generated from ABAP ) from a servlet, i have this error :
[EXCEPTION]
javax.xml.ws.WebServiceException: Invalid Response code (404). Server [http://adressWebService] returned message [Not Found]. Http proxy info: none
at com.sap.engine.services.webservices.espbase.client.jaxws.core.WSInvocationHandler.processTransportBindingCall(WSInvocationHandler.java:174)
Does anyone had an idea about this error ?
Thanks in advance for your help,
Regards,
KhalidaI have a great idea to look internet
http://en.wikipedia.org/wiki/HTTP_404 -
Calling a Webservice via a Function in PL/SQL
Hi
I am trying to call a webservice from a function, but i am getting an error, i am not sure that i am using the correct url for the end point or actions
Below is the class i am calling..
Please could some assist.
FUNCTION add_new_user (xmlstruct IN VARCHAR2)
RETURN VARCHAR2
IS
req xx_demo_soap.request;
resp xx_demo_soap.response;
BEGIN
req :=
xx_demo_soap.new_request
('processRequest',
'xmlns="http://extServices"'
xx_demo_soap.ADD_PARAMETER (req, 'processReq', 'xsd:string', xmlstruct);
resp :=
xx_demo_soap.invoke
(req,
'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS',
'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS/'
RETURN xx_demo_soap.get_return_value
(resp,
'processRequestResponse',
'xmlns="http://extServices"'
END;
Also here is the WSDL file
\<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://extServices" xmlns:impl="http://extServices" xmlns:intf="http://extServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<schema targetNamespace="http://extServices" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<element name="firstTestResponse">
<complexType>
<sequence>
<element name="firstTestReturn" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="processDelete">
<complexType>
<sequence>
<element name="processDel" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="processDeleteResponse">
<complexType>
<sequence>
<element name="processDeleteReturn" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="processRequest">
<complexType>
<sequence>
<element name="processReq" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="processRequestResponse">
<complexType>
<sequence>
<element name="processRequestReturn" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="processModify">
<complexType>
<sequence>
<element name="processMod" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="processModifyResponse">
<complexType>
<sequence>
<element name="processModifyReturn" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="firstTest">
<complexType>
<sequence/>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="processRequestResponse">
<wsdl:part element="impl:processRequestResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="processDeleteRequest">
<wsdl:part element="impl:processDelete" name="parameters"/>
</wsdl:message>
<wsdl:message name="firstTestResponse">
<wsdl:part element="impl:firstTestResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="processRequestRequest">
<wsdl:part element="impl:processRequest" name="parameters"/>
</wsdl:message>
<wsdl:message name="processModifyRequest">
<wsdl:part element="impl:processModify" name="parameters"/>
</wsdl:message>
<wsdl:message name="processModifyResponse">
<wsdl:part element="impl:processModifyResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="processDeleteResponse">
<wsdl:part element="impl:processDeleteResponse" name="parameters"/>
</wsdl:message>
<wsdl:message name="firstTestRequest">
<wsdl:part element="impl:firstTest" name="parameters"/>
</wsdl:message>
<wsdl:portType name="LdapProcWS">
<wsdl:operation name="firstTest">
<wsdl:input message="impl:firstTestRequest" name="firstTestRequest"/>
<wsdl:output message="impl:firstTestResponse" name="firstTestResponse"/>
</wsdl:operation>
<wsdl:operation name="processDelete">
<wsdl:input message="impl:processDeleteRequest" name="processDeleteRequest"/>
<wsdl:output message="impl:processDeleteResponse" name="processDeleteResponse"/>
</wsdl:operation>
<wsdl:operation name="processRequest">
<wsdl:input message="impl:processRequestRequest" name="processRequestRequest"/>
<wsdl:output message="impl:processRequestResponse" name="processRequestResponse"/>
</wsdl:operation>
<wsdl:operation name="processModify">
<wsdl:input message="impl:processModifyRequest" name="processModifyRequest"/>
<wsdl:output message="impl:processModifyResponse" name="processModifyResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="LdapProcWSSoapBinding" type="impl:LdapProcWS">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="firstTest">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="firstTestRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="firstTestResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="processDelete">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="processDeleteRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="processDeleteResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="processRequest">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="processRequestRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="processRequestResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="processModify">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="processModifyRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="processModifyResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="LdapProcWSService">
<wsdl:port binding="impl:LdapProcWSSoapBinding" name="LdapProcWS">
<wsdlsoap:address location="http://wbrbap92/LDAP_Self-Service/services/LdapProcWS"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
ThanksTry this..
CREATE OR REPLACE PACKAGE L_WEBSERVICE_INVOKE
AS
** Name: L_WEBSERVICE_INVOKE
PROCEDURE P_CREATE_XML(envolope IN OUT NOCOPY varchar2);
PROCEDURE P_INVOKE_WEBSERVICE(rs_error_msg IN OUT VARCHAR2,
on_result IN OUT NUMBER);
PROCEDURE SHOW_ENVELOPE(env IN VARCHAR2);
END L_WEBSERVICE_INVOKE;
show errors;
create or replace PACKAGE BODY L_WEBSERVICE_INVOKE
AS
PROCEDURE P_CREATE_XML(envolope IN OUT NOCOPY varchar2)
AS
BEGIN
envolope := '<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://extServices" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><q0:processRequest><processReq><?xml version='1.0'?><users><user><uid>W0001</uid><surname>Bruce</surname><firstName>Jacob</firstName><idNumber>6611254858081</idNumber><idType>P</idType><email>[email protected]</email><employer>FNB</employer><empNumber>W3546333</empNumber><department>Collections</department><region></region><branch>Southside</branch><division>Corporate</division></user><user><uid>W0034</uid><surname>Brian</surname><firstName>Sutters</firstName><idNumber>3445554858081</idNumber><idType>V</idType><email>[email protected]</email><employer>Wesbank</employer><empNumber>W3455455</empNumber><department>Fraud</department><region>PTA West</region><branch>Southside</branch><division>Corporate</division></user></users></processReq></q0:processRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>';
END P_CREATE_XML;
PROCEDURE P_INVOKE_WEBSERVICE(rs_error_msg IN OUT VARCHAR2,
on_result IN OUT NUMBER)
AS
ls_out_resp varchar2(32767);
http_req utl_http.req;
http_resp utl_http.resp;
ls_http_req_url varchar2(4000);
ls_result VARCHAR2(2000);
name VARCHAR2(256); -- Response header name
value VARCHAR2(1024); -- Response header value
line VARCHAR2(4000); -- Response body
ls_webservice_url varchar2(1024);
ls_in_request varchar2(4000);
is_webservice_err varchar2(2000);
BEGIN
on_result:=0;
ls_http_req_url := 'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS';
--Construct the Input Soap Request
P_CREATE_XML(ls_in_request);
--show_envelope(ls_in_request);
-- Establish the connection
http_req := utl_http.begin_request(ls_http_req_url, 'POST' ,'HTTP/1.1');
-- The Content-Length header has to indicate the amount of data in the XML document
utl_http.set_header(http_req, 'Content-Type', 'text/xml');
utl_http.set_header(http_req, 'Content-Length', to_char(length(ls_in_request)) );
-- POST the XML document
utl_http.write_text(http_req,ls_in_request);
-- Now process the HTTP server's response
http_resp := utl_http.get_response(http_req);
dbms_output.put_line('HTTP response status code: ' || http_resp.status_code);
dbms_output.put_line('HTTP response reason phrase: ' || http_resp.reason_phrase);
utl_http.read_text(http_resp, ls_out_resp);
show_envelope(ls_out_resp);
utl_http.end_response(http_resp);
EXCEPTION
WHEN Utl_Http.request_failed THEN
on_result:=-1;
rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-request_failed: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
Utl_Http.end_request (http_req);
WHEN Utl_Http.http_server_error THEN
on_result:=-1;
rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-Http_Server_Error: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
Utl_Http.end_request (http_req);
WHEN Utl_Http.http_client_error THEN
on_result:=-1;
rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-Http_Client_Error: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
Utl_Http.end_request (http_req);
when others then
on_result:=-1;
rs_error_msg := 'L_WEBSERVICE_INVOKE.P_INVOKE_WEBSERVICE: ' || SQLERRM;
Utl_Http.end_request (http_req);
END P_INVOKE_WEBSERVICE;
PROCEDURE SHOW_ENVELOPE(env IN VARCHAR2)
AS
i pls_integer;
len pls_integer;
BEGIN
i := 1;
len := length(env);
WHILE (i <= len)
LOOP
dbms_output.put_line(substr(env, i, 100));
i:=i+100;
END LOOP;
END SHOW_ENVELOPE;
END L_WEBSERVICE_INVOKE;
Now execute the anonymous block
set serverout on size 1000000;
DECLARE
RS_ERROR_MSG VARCHAR2(2000);
ON_RESULT NUMBER;
BEGIN
L_WEBSERVICE_INVOKE.P_INVOKE_WEBSERVICE(RS_ERROR_MSG,ON_RESULT);
END;
Good luck!!!
Bhagat
Message was edited by:
Bugs
Message was edited by:
Bugs -
How to call a webService from WebDynPro ABAP ?
We are trying to call a webService from WebDynPro-ABAP application. It is not working, While if we are calling the WebService from a Report, it is working.
How exactly do we call a WebService from a WebDynPro-ABAP application?
What are the main steps involved ?Hi Phani,
You will need to create a service call as follows.
Right click on your WD component name and select Create->Service Call
The wizard will guide you through a series of steps to make a Web Service Call. On the 3rd screen, it will give you options such as Function Module, Web Service, etc
Before making a service call, you will need to create a proxy for the Web service in the ABAP Workbench using a WSDL document as a basis. To create or consume Web services, you will need the authorizations associated with the role SAP_BC_WEBSERVICE_ADMIN. -
Escape special charter in WSDL url for calling a webservice
I am trying to call a webservice which has "&" in the WSDL url.
http://server:8080/asd?id=123gh3&wsdl=1
It is throwing "The refernece to entity must end with the ';' delimeter." error
How can I excape it or encode this specail character in WSDL url
ThanksIs this a compiler error? If so, replace & with &
If it is a runtime error, there is a top-level escape() function. -
Calling HTTPS Webservice error
Hello friends,
I am trying to call https Webservice SSL on ADS. However, it still did not work. I am getting error like "Error attempting to read from file".
If you have experience on configuring Webservice SSL, please advise. Your advice is much appreciated.
Best Regards,
FatihHello,
I am no basis guy, but maybe one of these could help:
ADS Installation and configuration:
http://help.sap.com/saphelp_nwmobile71/helpdata/en/37/504b8cbc2848a494facfdc09a359b1/frameset.htm
Troubleshooting for ADS configuration:
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/30ec0508-9438-2c10-f393-a41fb255698d?quicklink=index&overridelayout=true
ADS tests
http://help.sap.com/saphelp_nwmobile71/helpdata/en/43/f31e3082221595e10000000a1553f7/content.htm
Regards Otto -
Error While Calling a WebService from Application Module
Hi all
I have generated a Proxy from a web Service and i am trying to call the web service from an Application Module it is throwing me error
JBO-29000: Unexpected exception caught: oracle.classloader.util.AnnotatedNoClassDefFoundError, msg= Missing class: webservices.types.com.siebel.xml.order_interface.Orders Dependent class: java.lang.reflect.Array Loader: jre.bootstrap Code-Source: unknown Configuration: jre bootstrap
Missing class: webservices.types.com.siebel.xml.order_interface.Orders Dependent class: java.lang.reflect.Array Loader: jre.bootstrap Code-Source: unknown Configuration: jre bootstrap
IMy web Service is correct, as i have executed the client and it is working fine, but when i try to class the web service from an external class or from an application module it is throwing me this error. So any light on this issue will be very helpful
thanksHi,
did you registered the web service in the external service registration? The "DataAccessException:" is a hint to this issue.
best regards,
Rene -
Calling a WebService on a Web Dynpro Project
Hi Experts,
I'd made an EJB, then a WebService of that.
I'd tested the url in a Browser, and everything works fine... I sent the values, and got the correct response.
Now i'm trying to call it in a Web Dynpro. I'd imported the model, added to the controller, generated a method and set all the values that the WS receive, however every time i execute an error occurs.
This is the error in Log Viewer:
com.sap.engine.services.webservices.addtions.exceptions.ProcessException: Cannot find the required parameter [RefPagamento] in the request message content.
This is the code i'm using:
wdContext.nodeRequest_PedidoAutorizacao().invalidate();
WS_PagamentoVisa model = new WS_PagamentoVisa();
wdContext.nodeRequest_PedidoAutorizacao().bind(new Request_PedidoAutorizacao(model));
IPublicHotelariaController.IPedidoAutorizacaoElement input = wdContext.createPedidoAutorizacaoElement(new PedidoAutorizacao(model));
wdContext.nodePedidoAutorizacao().bind(input);
input.setRefPagamento("12321321323");
wdContext.currentRequest_PedidoAutorizacaoElement().modelObject().execute();
I believe the input is not well formed in my code, but i can't understand where's the problem.
Can anyone help me, please?
Thanks in advanced,
LuisHi,
Assuming you context to be..
Context
--Request_PedidoAutorizacao (node)
PedidoAutorizacao (node)
RefPagamento (attribute)
<i>You are invalidating Request_PedidoAutorizacao which is your main node.This node contians subnode PedidoAutorizacao</i>
<i>which has the input attribute RefPagamento</i>.
// try the following
WS_PagamentoVisa model = new WS_PagamentoVisa();
Request_PedidoAutorizacao req = new Request_PedidoAutorizacao(model);
PedidoAutorizacao input = new PedidoAutorizacao(model);
req.setPedidoAutorizacao(input);
wdContext.nodeRequest_PedidoAutorizacao().bind(req);
wdContext.currentPedidoAutorizacaoElement.setRefPagamento("12321321323");
wdContext.currentRequest_PedidoAutorizacaoElement().modelObject().execute();
wdContext.nodeResponse.invalidate(); // invalidate your response node -
401 Unauthorized error when calling a webservice
Have ColdFusion 11 installed, I have created a hello web service and I am trying to call it. Each time I try to call the web service I get an error 401 Unauthorized. I am not sure if I need to configure something more on the ColdFusion server, IIS or something else.
<cfcomponent displayname="Hello">
<cffunction name="helloWorld" returntype="string" access="remote">
<cfreturn "Hello World!">
</cffunction>
</cfcomponent>
<cfinvoke
webservice="http://MyServer/Hello.cfc?wsdl"
method="helloWorld"
returnvariable="ws" refreshwsdl="yes">
</cfinvoke>
<cfdump var="#ws#">It appears that you have inadvertently enforced HTTP authentication. If so, you will have to include the attributes, username="your_username" and password="your_password" in the cfinvoke tag.
-
can we call a php function into coldfusion??
if anybody knows that let me know....Nope, as IIS can only pass one page to one handler, so it gets passed to ColdFusion *or* PHP. The only way it would work is to have a page with an iFrame containing a PHP page, but that's not calling a PHP function from ColdFusion.
Dare I ask what it is you're trying to achieve exactly? If it's an extremely complicated function that can't possibly be rewritten, you'd probably want to wrap it up in a webservice and call it from CF. -
Hi,
I have a requirement of calling BI webservices from Plsql stored procedure. I generated all my wsdl java classes and loaded them into the database. However, when I tried to call one of my java class using stored procedure, it is giving me"ORA-29532: Java call terminated by uncaught Java exception: java.lang.NoClassDefFoundError".
*Cause: A Java exception or error was signaled and could not be
resolved by the Java code.
*Action: Modify Java code, if this behavior is not intended.
But all my dependency classes are present in database as java class objects and are valid. Can some one help me out of this?Stiphane,
You can look in USER_ERRORS to see if there's anything more specific reported by the compiler. But, it could also be the case that everything's OK (oddly enough). I loaded the JavaMail API in an 8.1.6 database and also got bytecode verifier errors, but it ran fine. Here are the errors I got when loading Sun's activation.jar, which ended up not being a problem:
ORA-29552: verification warning: at offset 12 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):12 by a throw at offset 18 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):18 by a throw at offset 30 of <init> void (java.lang.String, java.lang.String) cannot access class$java$io$InputStream
verifier is replacing bytecode at <init> void (java.lang.String, java.lang.String):30 by a throw
Hope this helps,
-Dan
http://www.compuware.com/products/devpartner/db/oracle_debug.htm
Debug PL/SQL and Java in the Oracle Database -
Error while trying to call external web service from oracle PL/SQL 10.2 g
Hi I am trying to call an external web service from oracle PL/SQL .I am getting following run time error when I try to set the opeartion style.
But as per the oracle documentation this is one of the 2 valid values.
ORA-29532: Java call terminated by uncaught Java exception: operation style: "document" not supported.Teh webservice does expect the operation style as document.
Following is the code I am executing.
FUNCTION email
return varchar2
AS
service_ SYS.utl_dbws.SERVICE;
call_ SYS.utl_dbws.CALL;
service_qname SYS.utl_dbws.QNAME;
port_qname SYS.utl_dbws.QNAME;
operation_qname SYS.utl_dbws.QNAME;
string_type_qname SYS.utl_dbws.QNAME;
retx ANYDATA;
retx_string VARCHAR2(1000);
retx_double number;
retx_len number;
params SYS.utl_dbws.ANYDATA_LIST;
l_input_params SYS.utl_dbws.anydata_list;
l_result ANYDATA;
l_namespace VARCHAR2(1000);
begin
-- open internet explorer and navigate to http://webservices.imacination.com/distance/Distance.jws?wsdl
-- search for 'targetNamespace' in the wsdl
l_namespace := 'http://service.xmlservices.global.freedomgroup.com/';
-- search for 'service name' in the wsdl
service_qname := SYS.utl_dbws.to_qname(l_namespace, 'ClientCoreWebServiceBeanService');
-- this is just the actual wsdl url
service_ := SYS.utl_dbws.create_service(HTTPURITYPE('http://hostname/GlobalWebServices/services/ClientCoreWebService?wsdl'), service_qname);
-- search for 'portType name' in the wsdl
port_qname := SYS.utl_dbws.to_qname(l_namespace, 'ClientCoreWebServiceBeanPort');
-- search for 'operation name' in the wsdl
-- there will be a lot, we will choose 'getCity'
operation_qname := SYS.utl_dbws.to_qname(l_namespace, 'postalCodelookup');
-- bind things together
call_ := SYS.utl_dbws.create_call(service_, port_qname, operation_qname);
-- default is 'FALSE', so we make it 'TRUE'
SYS.utl_dbws.set_property(call_, 'SOAPACTION_USE', 'TRUE');
-- search for 'operation soapAction' under <wsdl:operation name="getCity">
-- it is blank, so we make it ''
SYS.utl_dbws.set_property(call_, 'SOAPACTION_URI', '');
-- search for 'encodingstyle' under <wsdl:operation name="getCity">
SYS.utl_dbws.set_property(call_, 'ENCODINGSTYLE_URI', 'http://schemas.xmlsoap.org/soap/encoding/');
-- search for 'binding style'
SYS.utl_dbws.set_property(call_, 'OPERATION_STYLE', 'DOCUMENT');
-- search for 'xmlns:xs' to know the value of the first parameter
-- under <wsdl:message name="getCityResponse"> you will see the line <wsdl:part name="getCityReturn" type="xsd:string" />
-- thus the return type is 'string", removing 'xsd:'
string_type_qname := SYS.utl_dbws.to_qname('http://www.w3.org/2001/XMLSchema', 'string');
-- in the line <wsdl:operation name="getCity" parameterOrder="zip">
-- the parameterOrder is 'zip', thus we put in 'zip'
-- the 'ParameterMode.IN' is used to specify that we will be passing an "In Parameter" to the web service
-- the 'ParameterMode.IN' is a constant variable in the sys.utl_dbws package
--vj this cud be either params or xml
SYS.utl_dbws.add_parameter(call_, 'param1', string_type_qname, 'ParameterMode.IN');
SYS.utl_dbws.add_parameter(call_, 'param2', string_type_qname, 'ParameterMode.IN');
SYS.utl_dbws.set_return_type(call_, string_type_qname);
-- supply the In Parameter for the web service
params(0) := ANYDATA.convertvarchar('<TFGGlobalBasicXMLDO><systemCd>GLOBAL</systemCd><username>GlobalAdmin</username><password>GlobalAdmin</password><localID>1</localID></TFGGlobalBasicXMLDO>');
params(1) := ANYDATA.convertvarchar('<TFGGlobalPostalCodeLookupIDDO><postalCode>02446</postalCode><countryCode>USA</countryCode><stateCode>MA</stateCode><cityDisplay>BROOKLINE</cityDisplay><countyDisplay>NORFOLK</countyDisplay><include_inactive_flag>True</include_inactive_flag></TFGGlobalPostalCodeLookupIDDO>');
-- invoke the web service
retx := SYS.utl_dbws.invoke(call_, params);
dbms_output.put_line(retx.gettypename);
-- access the returned value and output it to the screen
retx_string := retx.accessvarchar2;
dbms_output.put_line('done' || retx_string);
dbms_output.put_line('PL/SQL DII client return ===> ' || retx_string);
-- release the web service call
SYS.utl_dbws.release_service(service_);
return retx_string;
end email;thsi is urgent anybody ????
-
Error while calling a webservice from ABAP system
Hi All,
I have generated a proxy for the webservice that is there in a Java system.
Iam getting the following error when I make a method call of that generated proxy.
SOAP:1.026 SRT: HTTP-Code 500: ("Internal Server Error").
Does anybody has any idea why is this happening?
Thank You,
Suresh.Hi Sridhar,
It is active and it was working fine. It suddendly started giving this error. Do you think if there is any possibility that there would be something wrong in the system where webservice is lying?
Thank You,
Suresh.
Maybe you are looking for
-
Current Concurrent Program Output permissions
Hi, I am working on Oracle Applications 11.5.10 Is it possible to send the concurrent program output of the current running program as a mail ? Or does the output file become available for reading once the whole program completes ? I am writing the e
-
I've had a bunch of issues with my iPhone 4 since the iOS 7 update
My iMessage doesn't work at all. Whenever I send iMessages they don't load nor do they automatically convert to text messages like they used to whenever the iMessage didnt work. Next, I used to be able to highlight and define a word I typed in a te
-
I had been using acrobat 9.5.3 updated through the years form 9.0 that came with my Scansnap. However since I refreshed my windows 8.1 with a ssd drive and w8,1 instal from scratch., the acrobat.standard 9.0 just fail to find update and I tried downl
-
Best Practice: changing a user's short name?
I administer the OS X Servers and user accounts at my school, where typically a few teachers will come back from the summer having gotten married and changed their names. We use a standard for usernames of first letter of first name and last name, wh
-
Open PO for the particular material
Hi All, I would like to list out open purchase orders for for the material ..what is the T code or Table for this ?