Problem while Calling Webservice from ABAP
Hello All,
I am Calling the Webservice using ABAP-Class from abap,i getting the following HTML response error from the Webservice.Can any one help me.
tional//EN">######
####td {font-family : Arial, Tahoma
, Helvetica, sans-serif; font-size : 14px;}##A:lin
k ##A:visited
##A:active ####
Thanks and Regards,
Kamal
It is not finding the correct URL - hence the 404 - page not found error.
Correct the URL and try again.
Similar Messages
-
Problem while calling webservice from a plsql stored procedure
Hi everybody,
I need to call a webservice from a plsql stored procedure.
I was following documentation published in the otn at the following link.
"http://www.oracle.com/technology/tech/webservices/htdocs/samples/dbwebservice/DBWebServices_PLSQL.html"
I am encountering the following error on my sql prompt-
SQL> exec dbms_output.put_line(time_service.get_local_time('94065'));
BEGIN dbms_output.put_line(time_service.get_local_time('94065')); END;
ERROR at line 1:
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1022
ORA-12545: Connect failed because target host or object does not exist
ORA-06512: at "APPS.DEMO_SOAP", line 65
ORA-06512: at "APPS.TIME_SERVICE", line 13
ORA-06512: at line 1
Has anybody worked on the same example. Please direct me.
Thanks & Regards
Kiran KumarKiran, were you able to solve this?
I am facing the same error.
Oracle Server is Unix and webservice is .NET.
I am able to connect to Java web service. -
Calling webservices from ABAP via https/ssl with p12 certificates.
Hi all,
I have a problem with calling an external webservice via HTTPS.
I configured my system as indicate in the blog /people/jens.gleichmann/blog/2008/10/31/calling-webservices-from-abap-via-httpsssl-with-pfx-certificates but when I check the RFC connection the result is: ICM_HTTP_SSL_ERROR.
I check the ICM monitor and this is the result:
[Thr 11] Thu May 26 16:02:57 2011
[Thr 11] *** ERROR during SecudeSSL_SessionStart() from SSL_connect()==SSL_ERROR_SSL
[Thr 11] session uses PSE file "/usr/sap/SV5/DVEBMGS10/sec/SAPSSLHTTPS1.pse"
[Thr 11] SecudeSSL_SessionStart: SSL_connect() failed
secude_error 536875072 (0x20001040) = "received a fatal SSLv3 handshake failure alert message from the peer"
[Thr 11] >> Begin of Secude-SSL Errorstack >>
[Thr 11] WARNING in ssl3_read_bytes: (536875072/0x20001040) received a fatal SSLv3 handshake failure alert message from the peer
WARNING in ssl3_output_cert_chain: (12354/0x3042) No hierarchy certificate in FCPath
WARNING in reduce_FCPath_by_Issuer: (12354/0x3042) No hierarchy certificate in FCPath
[Thr 11] << End of Secude-SSL Errorstack
[Thr 11] SSL_get_state() returned 0x000021d0 "SSLv3 read finished A"
[Thr 11] Server's List of trusted CA DNames (from cert-request message):
[Thr 11] #1 " certificate 1
[Thr 11] #2 " certificate 2
[Thr 11] SSL NI-sock: local=ip peer=ip2
[Thr 11] <<- ERROR: SapSSLSessionStart(sssl_hdl=6000000000652010)==SSSLERR_SSL_CONNECT
[Thr 11] *** ERROR => IcmConnInitClientSSL: SapSSLSessionStart failed (-57): SSSLERR_SSL_CONNECT [icxxconn_mt.c 2012]
SAP_ABA 700 0012 SAPKA70012 Componenti validi per tutte le applicazioni
SAP_BASIS 700 0012 SAPKB70012 Componenti di base SAP
PI_BASIS 2005_1_700 0012 SAPKIPYJ7C PI_BASIS 2005_1_700
ST-PI 2008_1_700 0001 SAPKITLRD1 SAP Solution Tools Plug-In
SAP_BW 700 0013 SAPKW70013 SAP NetWeaver BI 7.0
SAP_AP 700 0010 SAPKNA7010 Piatt. d'applicazione SAP
CCM 200_700 0010 SAPK-27010INCCM CCM 200_700 : Add-On Supplement
SRM_PLUS 550 0010 SAPKIBK010 SRM_PLUS per mySAP SRM
SRM_SERVER 550 0010 SAPKIBKT10 SRM_SERVER
BI_CONT 703 0001 SAPKIBIIP1 Contenuto Business Intelligence
ST-A/PI 01L_BCO700 0000 - Servicetools for other App./Netweaver 04
What do you think about it?
Best regards,
Norberto.Don´t forget to set your proxy settings! Be sure that the application server could establish a connection to the external server.
From the BLog.
Thr 11 WARNING in ssl3_read_bytes: (536875072/0x20001040) received a fatal SSLv3 handshake failure alert message from the peer
From the Error.
Have you looked into the above details?
Thanks
SM -
XML Error while calling webservice from oracle function.
I am getting an error while I am trying to call webservice from oracle function. Any ideas? Thanks.
select get_new_string ('proxy:80', 'http://xxx/PatternVariations/SourceTest/WebMethods','Scott') from dual
ERROR at line 1:
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "H4" does not match start-element tag "P"
Error at line 9
ORA-06512: at "SYS.XMLTYPE", line 0
ORA-06512: at "DORSBP00.DEMO_SOAP", line 82
ORA-06512: at "DORSBP00.GET_NEW_STRING", line 11The error message implies that the web service is returning something that is not well formed xml. Can you verify what is being returned by the web service call
-
Problem in calling Webservice from Webdynpro ABAP
I want to call a BAPI FM which is available in SAP ECC server when user is clicking on a button in a web dynpro application which is available in SAP Portal server.
For example,
Portal server name is DVP-EPP &
ECC server name is DVP-ECC
I have the done the following steps to achieve it,
In Server DVP ECC:
1) Created Web service from the standard BAPI FM (SE37-->Utilities-->More Utilities-->Create WebService --> From the the Func.Module)
2) Downloaded the WebService as WSDL file from SOAMANAGER
3) Tested the Web service through SE80, it is correctly calling the BAPI & creating necessary data.
In Server DVP EPP:
4) Created a Proxy class as follows,
a) SE80 --> Package --> Create --> Enterprise service
b) Selected Object type "Service Consumer"
c) Selected Service Consumer "Local File"
d) Browsed and selected WSDL file downloaded from DVP ECC
e) Selected the Package, Prefix, Request, Completed the process & Activated it.
5) Configured the Logical port as follows,
a) Selected my Proxy class through F4
b) Wrote a name for Logical port, Selected 'Default port' checkbox and selected 'Create'
c) In the next screen, in 'Call parameters' tab, selected the 'URL' radio button & mentioned the URL of the WSDL-Document created in DVP-ECC system
d) Saved the data & activated it
5) Now, tested the service through (SE80-->Package-->Enterprise Services-->Client Proxy) option.
6) When I test it, system prompts a dialog box for User-Name & Password (as available in DVP-ECC system).
After the details are given, system throws the Information message as "SOAP:14 Unexpected element -el=definitions ns=http://schemas.xmlsoap.org/wsdl/" - Exception of class CX_AI_SYSTEM_FAULT
No record is created in DVP-ECC through the WebService BAPI.
Please tell me whether the steps that I followed are correct as per my requirement and a solution for the above interruption.
Thanks in advanceGood day guys,
Somehow I managed to resolve the above error.
Now in DVP-EPP system, I am able to Test the Web service Client Proxy (through SE80) and a record is successfully created in destination system (DVP-ECC).
Now, in Webdynpro I am unable to call this webservice proxy class.
System throws the error,
Error (id=SoapFaultCode:5): Web service processing error; more details in the
web service error log on provider side (UTC timestamp 20141006045544;
Transaction ID 9A144DE49C12F1B5A6B9E41F137BE3CC)
I just created a sample WDA application and on click of a button I am calling the Webservice Proxy class as follows,
Method on_submit_click().
TRY.
CREATE OBJECT wd_assist
EXPORTING
logical_port_name = 'ZLOG_PORT'. "Logic port creatd for Proxy class (in SOAMANAGER)
CALL METHOD wd_assist->bus1240create "Method available in generated Proxy Class
EXPORTING
input = ls_inp
IMPORTING
output = ls_outp.
CATCH cx_ai_system_fault.
ENDTRY.
ENDMETHOD.
Do I have to do any thing additionally in order to call the WebService in WDA?? Because, in the same system, if I test it in SE80, record is perfectly created in destination server.
Also please suggest if I have to do any other configuration changes related to this.
Keenly awaiting your reply.
Have a nice day .
Thank you. -
Hello,
I use the following code to call web service from abap, but in the method "http_client->receive" i see "http_communication_failure = 1" .
this is the code:
DATA: SMS_TEXT TYPE STRING,
SMS_TEXT_UTF TYPE STRING,
SEND_STRING TYPE STRING.
DATA: w_string TYPE string ,
w_result TYPE string ,
r_str TYPE string .
DATA: result_tab TYPE TABLE OF string.
DATA: http_client TYPE REF TO if_http_client.
SEND_STRING = 'http://www.currencyserver.de/webservice/currencyserverwebservice.asmx/getDollarValue?provider=AVERAGE¤cy=EUR'.
CALL METHOD cl_http_client=>create_by_url
EXPORTING
url = SEND_STRING
IMPORTING
client = http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
others = 4.
if sy-subrc = 0.
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.
if sy-subrc = 0.
w_result = http_client->response->get_cdata( ).
REFRESH result_tab .
SPLIT w_result AT cl_abap_char_utilities=>cr_lf INTO TABLE result_tab .
loop at result_tab into w_result.
write :/ w_result.
endloop.
endif.
endif.
Any Idea?
thanks.
Ouail.*& Report ZBS_TEST
REPORT zbs_test.
*Data
DATA: xml_doc TYPE REF TO cl_xml_document,
node TYPE REF TO if_ixml_node,
value TYPE string,
lv_result TYPE string,
lv_service TYPE string,
lo_http_client TYPE REF TO if_http_client.
lv_service = 'http://www.currencyserver.de/webservice/currencyserverwebservice.asmx/getDollarValue?provider=AVERAGE¤cy=EUR'.
*Call method to invoke web service
cl_http_client=>create_by_url(
EXPORTING
url = lv_service
IMPORTING
client = lo_http_client
EXCEPTIONS
argument_not_found = 1
plugin_not_active = 2
internal_error = 3
OTHERS = 4 ).
lo_http_client->send(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2 ).
lo_http_client->receive(
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3 ).
*Create XML parser object using xml returned from web service
CLEAR lv_result.
lv_result = lo_http_client->response->get_cdata( ).
CREATE OBJECT xml_doc.
xml_doc->parse_string( stream = lv_result ).
*Use XML parser to get initial row and then loop through all rows
CALL METHOD xml_doc->get_first_node
RECEIVING
node = node.
*Loop through xml document extracting the data into an internal table
WHILE NOT node IS INITIAL.
CLEAR value.
CALL METHOD node->get_value
RECEIVING
rval = value.
WRITE: / 'Value', value.
CALL METHOD node->get_next
RECEIVING
rval = node.
ENDWHILE.
Try this code it should work to retrieve your values from the webservice. -
Problem while pinging Webservice from SUP 2.0
Hi ,
i am developing an SUP application using webservices.
I am unable to ping the webservice from SUP.
Using the following webservice: [http://www.currencyserver.de/webservice/currencyserverwebservice.asmx?WSDL]
I get the following error on pinging it.
com.sybase.sup.tooling.xml.XmlException: java.net.UnknownHostException: www.currencyserver.de
at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:589)
at com.sybase.sup.tooling.wsdl.WsdlParser.parse(WsdlParser.java:68)
at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:70)
at com.sybase.uep.tooling.eis.WsEISOperationBuilder.<init>(WsEISOperationBuilder.java:51)
at com.sybase.uep.datasources.ws.views.WSConnection.initialize(WSConnection.java:154)
at com.sybase.uep.datasources.ws.views.WSConnection.<init>(WSConnection.java:38)
at com.sybase.uep.datasources.ws.views.WSConnectionFactory.createConnection(WSConnectionFactory.java:28)
at org.eclipse.datatools.connectivity.internal.ConnectionFactoryProvider.createConnection(Unknown Source)
at org.eclipse.datatools.connectivity.internal.ConnectionProfile.createConnection(Unknown Source)
at org.eclipse.datatools.connectivity.ui.PingJob.createTestConnection(Unknown Source)
at org.eclipse.datatools.connectivity.ui.PingJob.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: java.net.UnknownHostException: www.currencyserver.de
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:529)
at java.net.Socket.connect(Socket.java:478)
at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:233)
at sun.net.www.http.HttpClient.New(HttpClient.java:306)
at sun.net.www.http.HttpClient.New(HttpClient.java:323)
at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
at com.sybase.sup.tooling.wsdl.WsdlParser.parseURL(WsdlParser.java:578)
Please let me know the solution.
Regards,
Jitendra KansalHi Guru,
i saved that page in form of .WSDL file and it worked. thanks for it.
but the problem is while creating MBO
step 1. i selected a data type as webservice and connection profile CurrencyConversionServices
step2. then i selected the "GetCurrencyvalue" operation that import a provider agency, a source and destination currency and exports the exvhange rate.
step3. when i am giving some default values for
provider >> "AVERAGE"
Source Currency>> "ARS"
Destination Currency>> "USD"
when i am moving on next screen it is throwing the following error.
Error occurred during execution, please check the default Values of the selected input parameters and refresh again.
Reason: www.currencyserver.de
when i am clicking on Details to check it is showing...
www.currencyserver.de
www.currencyserver.de
java.net.UnknownHostException: www.currencyserver.de
java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
java.net.Socket.connect(Socket.java:529)
java.net.Socket.connect(Socket.java:478)
java.net.Socket.<init>(Socket.java:375)
java.net.Socket.<init>(Socket.java:249)
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:79)
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:121)
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.open(MultiThreadedHttpConnectionManager.java:1321)
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(AbstractHTTPSender.java:560)
org.apache.axis2.transport.http.HTTPSender.sendViaPost(HTTPSender.java:199)
org.apache.axis2.transport.http.HTTPSender.send(HTTPSender.java:76)
org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:400)
org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:225)
org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:435)
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:402)
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229)
org.apache.axis2.client.OperationClient.execute(OperationClient.java:165)
com.sybase.vader.da.ws.soap.SoapInteractionOperation.execute(SoapInteractionOperation.java:498)
com.sybase.vader.statistics.MonitoringOperation.execute(MonitoringOperation.java:65)
com.sybase.vader.service.interaction.PipelineCompositeInteractionOperation.execute(PipelineCompositeInteractionOperation.java:55)
com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:265)
com.sybase.uep.tooling.eis.BaseEISOperation.execute(BaseEISOperation.java:165)
com.sybase.uep.tooling.eis.WsEISOperationImpl.execute(WsEISOperationImpl.java:808)
com.sybase.uep.tooling.ui.ModelsUtil.getEEISOperationMetaData(ModelsUtil.java:255)
com.sybase.uep.tooling.ui.mappertree.common.AttributesMapperDataBuilder.constructTargetRoot(AttributesMapperDataBuilder.java:104)
com.sybase.uep.tooling.ui.mappertree.common.AbstractMapperDataBuilder.build(AbstractMapperDataBuilder.java:37)
com.sybase.uep.tooling.ui.wizards.common.AttributesBottomUpWizard.createAttributes(AttributesBottomUpWizard.java:767)
com.sybase.uep.tooling.ui.wizards.common.AttributesBottomUpWizard$3.run(AttributesBottomUpWizard.java:643)
org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Regards,
Jitendra -
Error while calling webservice from oracle8i
Hi,
i am trying to call a webservice from a stored procedure in Oracle 8i.
I am getting the following error.
ORA-31011: XML Parsing failed
ORA-19202: Error occurred in XML processing
LPX-00225: end-element tag "body" does not match start element tag "br"
Kinldy help me in knowing the cause of this issue. Also i wanted to know if
webservices will work in oracle 8i enterprise edition release 8.1.7.4.0
or do we need to add any patches for it.
Thanks,
SathiaThis forum is for XML DB issues. XML DB is a feature of 9iR2 and later.You need t look in the XML Technology forum
-
Error while calling 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
My web Service is correct, as i have executed the client and it is working fine, but when i try to access the web service from an application module it is throwing me this error. So any light on this issue will be very helpful
thanksThis forum is for XML DB issues. XML DB is a feature of 9iR2 and later.You need t look in the XML Technology forum
-
Problem while calling servlet from java bean
I am trying to call a servlet from java bean in cep.
My java bean:
package com.bea.wlevs.example.algotrading;
import com.bea.wlevs.ede.api.StreamSink;
import com.bea.wlevs.example.algotrading.event.MarketEvent;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.Unmarshaller;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.StringReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
public class MarketEventBean implements StreamSink {
String s=null;
public void onInsertEvent(Object event) {
if (event instanceof MarketEvent) {
MarketEvent marketEvent = (MarketEvent) event;
try {
JAXBContext cxt = JAXBContext.newInstance(MarketEvent.class);
Unmarshaller unmarsh = cxt.createUnmarshaller();
StringReader strReader = new StringReader(marketEvent.getString_1());
MarketEvent obj = (MarketEvent) unmarsh.unmarshal(strReader);
s=obj.getSymbol();
System.out.println("data: " + s);
} catch(Exception e) {
e.printStackTrace();
try {
System.out.println("test1");
URL url = new URL("http://172.18.21.94:7001/AppServletrecv-Model-context-root/ReceiveServlet");
URLConnection conn = url.openConnection();
System.out.println("test2");
conn.setDoOutput(true);
System.out.println("test3");
BufferedWriter out =
new BufferedWriter( new OutputStreamWriter( conn.getOutputStream() ) );
out.write("symbol="+s);
System.out.println("test4");
out.flush();
System.out.println("test5");
out.close();
System.out.println("test6");
BufferedReader in =
new BufferedReader( new InputStreamReader( conn.getInputStream() ) );
System.out.println("test7");
String response;
while ( (response = in.readLine()) != null ) {
System.out.println( response );
in.close();
catch ( MalformedURLException ex ) {
// a real program would need to handle this exception
catch ( IOException ex ) {
// a real program would need to handle this exception
My servlet code:
package model;
import javax.servlet.http.HttpServlet;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class ReceiveServlet extends HttpServlet {
private final static String _SYMBOL = "symbol";
public void doPost(HttpServletRequest request, HttpServletResponse response) {
* Get the value of form parameter
// private final static String USERNAME = "username";
String symbol = request.getParameter( _SYMBOL );
* Set the content type(MIME Type) of the response.
response.setContentType("text/html");
* Write the HTML to the response
try {
PrintWriter out = response.getWriter();
out.println("<html>");
out.println("<head>");
out.println("<title> A very simple servlet example</title>");
out.println("</head>");
out.println("<body>");
out.println("<h1>Hello " + symbol +"</h1>");
out.println("</body>");
out.println("</html>");
out.close();
} catch (IOException e) {
Web.xml:
<?xml version = '1.0' encoding = 'windows-1252'?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
version="2.5" xmlns="http://java.sun.com/xml/ns/javaee">
<servlet>
<servlet-name>ReceiveServlet</servlet-name>
<servlet-class>model.ReceiveServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ReceiveServlet</servlet-name>
<url-pattern>/ReceiveServlet</url-pattern>
</servlet-mapping>
</web-app>
My servlet is running in weblogic server.
But when I am running this program in weblogic server side there is no log.
Edited by: 856272 on Jun 23, 2011 6:43 AMI would run both sides in a debugger and see what code is getting invoked
-
Problem with calling Webservice from Java Webdynpro
Hi,
I have a scenario where I need to call a Webservice through my Webdynpro application. I need to pass few parameters(of type string) and the Webservice is suppose to retrun a few records based on the input values.
When I run the webservice directly using the browser, the output is in XML format.
When I create a model for the webservice in webdynpro, the return value is a Node element of type java.lang.Object. From webdynpro, I am successfully able to make a call to the Webservice (as there is no exception with model execute command), but the return value is always null. I am not sure if the webservice is not returning any data or if I am not reading the correct context element. There is no documentation available for the webservice either.
Can anyone tell me what is that I am missing. Is it not possible for Webdynpro to call a webservice which can return only XML data?
Any help on this issue would be greatly appreciated.
Thanks,
SudheerHi Sudheer,
You can refer to wiki link (& other links available at the end in this)
https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdjava/faq-Models-AdaptiveWebService
Kind Regards,
Nitin -
Problem while calling concsub from shell script
Hi All,
I am facing problem when I am trying to run CONCSUB utility from shell script.The same works well when I try it from command line.The only prob I am facing from shell script is assigning values to temporary variables.
This is how my script looks
#!/bin/bash
export PARM5="$5"
export PARM6="$6"
export PARM7="$7"
echo "INTPARM5=\"$PARM5\""
echo "INTPARM6=\"$PARM6\""
echo "INTPARM7=\"$PARM7\""
echo $FND_TOP/bin/CONCSUB $1 ONT 'Order Management Super User, Vision Operations (USA)' $3 WAIT=Y CONCURRENT ONT $PROGRAM "$INTPARM5" "$INTPARM6" "$INTPARM7"When I try to run the above shell based concurrent program it doesn't pass the parameters as expected and it errors out saying "Wrong number of arguments to call the procedure"
I tried my luck from some of the previous posts ({thread:id=2360776} ),but to vain
If anyone has any ideas,please suggest!!
Thanks in advance!!
Edited by: sandy on May 4, 2013 12:54 PMHere are your proofs
Proocedure
PROCEDURE abc(--p_errbuf OUT VARCHAR2,
--p_errcode OUT VARCHAR2,
p_order_no IN NUMBER DEFAULT NULL,
p_customer_id IN NUMBER DEFAULT NULL,
p_name IN VARCHAR2 DEFAULT NULL
IS
v_cname VARCHAR2(200);
v_ordered_date DATE;
v_order_number NUMBER;
v_order_type VARCHAR2(200);
BEGIN
fnd_file.put_line(fnd_file.output, 'Begin Execution');
SELECT DISTINCT ac.customer_name,
d.ordered_date ordered_date,
d.order_number order_number,
x.NAME order_type
INTO v_cname
,v_ordered_date
,v_order_number
,v_order_type
FROM oe_order_headers_all d,
oe_transaction_types_tl x,
wsh_delivery_details b,
wsh_delivery_assignments c
,ar_customers ac
WHERE 1 = 1
AND ac.customer_id = b.customer_id
AND d.order_type_id = x.transaction_type_id
AND x.LANGUAGE = 'US'
AND b.released_status = 'B'
AND b.source_header_id = d.header_id
AND c.delivery_detail_id = b.delivery_detail_id
AND d.order_number=NVL(p_order_no,d.order_number)
AND ac.customer_id = NVL(p_customer_id,ac.customer_id)
AND x.name=NVL(p_name,x.name)
AND NOT EXISTS (SELECT 1
FROM wsh_delivery_details b
WHERE 1 = 1
AND b.released_status != 'B'
AND b.source_header_id = d.header_id)
--BETWEEN ('1213794') and ('1213797'))
AND rownum<2;
INSERT INTO xxc_temp(customer_name,ordered_date,order_number,order_type) VALUES(v_cname,v_ordered_date,v_order_number,v_order_type);
COMMIT;
fnd_file.put_line(fnd_file.output, 'Order Number is' || v_order_number);
fnd_file.put_line(fnd_file.output, 'Order Type is' || v_order_type);
END;Script
#!/bin/bash
set -x
export PARM5="$5"
export PARM6="$6"
export PARM7="$7"
sqlplus -s $1 <<EOF
set head off feed off serverout on size 1000000
exec abc('$PARM5','$PARM6','$PARM7');
exit
EOFNow when I run the 'XX Order Detail CSV Report' I get the below log and no Output
+---------------------------------------------------------------------------+
Application Object Library: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
XXKES_PDF_TRANSFER module: XX Order Detail CSV Report
+---------------------------------------------------------------------------+
Current system time is 06-MAY-2013 05:05:56
+---------------------------------------------------------------------------+
+ export PARM5=66432
+ PARM5=66432
+ export PARM6=
+ PARM6=
+ export PARM7=Mixed
+ PARM7=Mixed
+ sqlplus -s APPS/APPS
+---------------------------------------------------------------------------+
Executing request completion options...
Output file size:
0
+------------- 1) PRINT -------------+
Disabling requested Output Post Processing. Nothing to process. The output of the request is zero byte.
+--------------------------------------+
Finished executing request completion options.
+---------------------------------------------------------------------------+
Concurrent request completed successfully
Current system time is 06-MAY-2013 05:05:56
+---------------------------------------------------------------------------+After the concurrent program executed I queried the table xxc_temp and here you see the data
SQL> select * from xxc_temp;
CUSTOMER_NAME
ORDERED_D ORDER_NUMBER ORDER_TYPE
A. C. Networks
18-FEB-13 66432 MixedMy procedure fetches the data fro given set of i/p parameters but it doesn't give o/p coz it's a host based conc program.Please advise if there's a way to get the o/p in a host based conc program
Thanks!! -
Problem while genearting WSDL from ABAP
Hi all
I have encountered a problem.I created a WSDL from a ABAP program,but in the ABAP function module what it does is it inserts value onto a transparent table from a table which let me specify as a virtual table.So after generating the wsdl i am surprised to see the virtual table has come in the output part .I am unable to make out why this happened.
i am mentioning below the ABAP code which inserts value on to a transparent table from a virtual table
Code-Function module-smlg_modify
<u>virtual table Definition</u>
"table with items for insertion
DATA INS_TAB LIKE RZLLITAB OCCURS 0 WITH HEADER LINE.
DESCRIBE TABLE MODIFICATIONS LINES ITEMS.
LOOP AT MODIFICATIONS.
MODIFICATIONS-GROUPTYPE = GROUPTYPE.
CASE MODIFICATIONS-MODIFICATN.
WHEN 'I'. "insertion of an item
INS_TAB = MODIFICATIONS.
APPEND INS_TAB.
END LOOP
DESCRIBE TABLE INS_TAB LINES ITEMS.
IF ITEMS > 0.
INSERT RZLLITAB FROM TABLE INS_TAB-->(one i mentioned as virtual.)
ENDIF.
In such a case how comes the virtual comes as the output in wsdl
I am mentioning below the the wsdl
<----
>
<?xml version="1.0" encoding="ASCII"?>
<wsdl:definitions xmlns:ctc="http://sap.com/ctc" xmlns:ctc-bapi="http://www.sap.com/ctc/abapprovider" xmlns:ctc_ref="urn:example/encoded" xmlns:ctclib="http://sap.com/ctc/schema/lib" xmlns:plnk="http://schema.xmlsoap.org/ws/2003/05/partner-link" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://sap.com/ctc/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SMLG_MODIFYServiceDefinition" targetNamespace="http://sap.com/ctc/services">
<wsdl:types>
<xsd:schema xmlns:tns="http://sap.com/ctc/services" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sap.com/ctc/services">
<xsd:element name="GROUPTYPE" type="xsd:string"/>
<xsd:element name="SET_LOCK" type="xsd:string"/>
<xsd:complexType name="ERFC_MODIFICATIONS">
<xsd:sequence>
<xsd:element name="CLASSNUM" type="xsd:int"/>
<xsd:element name="CLASSNAME" type="xsd:string"/>
<xsd:element name="GROUPTYPE" type="xsd:string"/>
<xsd:element name="TIMERERD" type="xsd:int"/>
<xsd:element name="LOGRERD" type="xsd:int"/>
<xsd:element name="FAVTYPE" type="xsd:string"/>
<xsd:element name="MODIFICATN" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
<xsd:element name="CLASSNUM" type="xsd:int"/>
<xsd:element name="CLASSNAME" type="xsd:string"/>
<xsd:element name="GROUPTYPE" type="xsd:string"/>
<xsd:element name="TIMERERD" type="xsd:int"/>
<xsd:element name="LOGRERD" type="xsd:int"/>
<xsd:element name="FAVTYPE" type="xsd:string"/>
<xsd:element name="MODIFICATN" type="xsd:string"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="SMLG_MODIFYInput">
<wsdl:part name="GROUPTYPE" type="xsd:string"/>
<wsdl:part name="SET_LOCK" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="SMLG_MODIFYOutput">
<wsdl:part name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
<wsdl:part name="CLASSNUM" type="xsd:int"/>
<wsdl:part name="CLASSNAME" type="xsd:string"/>
<wsdl:part name="GROUPTYPE" type="xsd:string"/>
<wsdl:part name="TIMERERD" type="xsd:int"/>
<wsdl:part name="LOGRERD" type="xsd:int"/>
<wsdl:part name="FAVTYPE" type="xsd:string"/>
<wsdl:part name="MODIFICATN" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="SMLG_MODIFYPT">
<wsdl:operation name="SMLG_MODIFYOperation">
<wsdl:input message="SMLG_MODIFYInput"/>
<wsdl:output message="SMLG_MODIFYOutput"/>
<wsdl:fault message="ctclib:BAPIException" name="BAPIException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SMLG_MODIFYBinding" type="SMLG_MODIFYPT">
<ctc:binding transport="com.sap.mw.jco"/>
<wsdl:operation name="SMLG_MODIFYOperation">
<ctc-bapi:function name="SMLG_MODIFY"/>
<wsdl:input>
<ctc:body encodingStyle="ctc:SCHEMA2ABAP">
<ctc-bapi:partbinding name="GROUPTYPE">
<field elementname="GROUPTYPE">
<name>GROUPTYPE</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="SET_LOCK">
<field elementname="SET_LOCK">
<name>SET_LOCK</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
</ctc:body>
</wsdl:input>
<wsdl:output>
<ctc:body encodingStyle="ctc:SCHEMA2ABAP">
<ctc-bapi:partbinding name="ERFC_MODIFICATIONS">
<table elementname="ERFC_MODIFICATIONS" jcoName="ERFC_MODIFICATIONS">
<structure elementname="RZLLIMODGP" jcotype="RZLLIMODGP">
<field elementname="CLASSNUM">
<name>CLASSNUM</name>
<type>NUMC</type>
</field>
<field elementname="CLASSNAME">
<name>CLASSNAME</name>
<type>CHAR</type>
</field>
<field elementname="GROUPTYPE">
<name>GROUPTYPE</name>
<type>CHAR</type>
</field>
<field elementname="TIMERERD">
<name>TIMERERD</name>
<type>NUMC</type>
</field>
<field elementname="LOGRERD">
<name>LOGRERD</name>
<type>NUMC</type>
</field>
<field elementname="FAVTYPE">
<name>FAVTYPE</name>
<type>CHAR</type>
</field>
<field elementname="MODIFICATN">
<name>MODIFICATN</name>
<type>CHAR</type>
</field>
</structure>
</table>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="CLASSNUM">
<field elementname="CLASSNUM">
<name>CLASSNUM</name>
<type>NUMC</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="CLASSNAME">
<field elementname="CLASSNAME">
<name>CLASSNAME</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="GROUPTYPE">
<field elementname="GROUPTYPE">
<name>GROUPTYPE</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="TIMERERD">
<field elementname="TIMERERD">
<name>TIMERERD</name>
<type>NUMC</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="LOGRERD">
<field elementname="LOGRERD">
<name>LOGRERD</name>
<type>NUMC</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="FAVTYPE">
<field elementname="FAVTYPE">
<name>FAVTYPE</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="MODIFICATN">
<field elementname="MODIFICATN">
<name>MODIFICATN</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
</ctc:body>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SMLG_MODIFYService">
<wsdl:port binding="SMLG_MODIFYBinding" name="SMLG_MODIFYServicePort"/>
</wsdl:service>
</wsdl:definitions>
>
My purpose is to create a .cproc file which will pass values to this wsdl file.I dont know how to pass as the table which the function module accepts as input is output in wsdl.so i am not aware how to pass value.Kindly help me out how to create a .cproc file for it
Thanks
NeetaIt is not finding the correct URL - hence the 404 - page not found error.
Correct the URL and try again. -
Problem while craeting WSDL from ABAP
Hi all
I have encountered a problem.I created a WSDL from a ABAP program,but in the ABAP function module what it does is it inserts value onto a transparent table from a table which let me specify as a virtual table.So after generating the wsdl i am surprised to see the virtual table has come in the output part .I am unable to make out why this happened.
i am mentioning below the ABAP code which inserts value on to a transparent table from a virtual table
Code-Function module-smlg_modify
<u>virtual table Definition</u>
"table with items for insertion
DATA INS_TAB LIKE RZLLITAB OCCURS 0 WITH HEADER LINE.
DESCRIBE TABLE MODIFICATIONS LINES ITEMS.
LOOP AT MODIFICATIONS.
MODIFICATIONS-GROUPTYPE = GROUPTYPE.
CASE MODIFICATIONS-MODIFICATN.
WHEN 'I'. "insertion of an item
INS_TAB = MODIFICATIONS.
APPEND INS_TAB.
END LOOP
DESCRIBE TABLE INS_TAB LINES ITEMS.
IF ITEMS > 0.
INSERT RZLLITAB FROM TABLE INS_TAB-->(one i mentioned as virtual.)
ENDIF.
In such a case how comes the virtual comes as the output in wsdl
I am mentioning below the the wsdl
<----
>
<?xml version="1.0" encoding="ASCII"?>
<wsdl:definitions xmlns:ctc="http://sap.com/ctc" xmlns:ctc-bapi="http://www.sap.com/ctc/abapprovider" xmlns:ctc_ref="urn:example/encoded" xmlns:ctclib="http://sap.com/ctc/schema/lib" xmlns:plnk="http://schema.xmlsoap.org/ws/2003/05/partner-link" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://sap.com/ctc/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="SMLG_MODIFYServiceDefinition" targetNamespace="http://sap.com/ctc/services">
<wsdl:types>
<xsd:schema xmlns:tns="http://sap.com/ctc/services" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sap.com/ctc/services">
<xsd:element name="GROUPTYPE" type="xsd:string"/>
<xsd:element name="SET_LOCK" type="xsd:string"/>
<xsd:complexType name="ERFC_MODIFICATIONS">
<xsd:sequence>
<xsd:element name="CLASSNUM" type="xsd:int"/>
<xsd:element name="CLASSNAME" type="xsd:string"/>
<xsd:element name="GROUPTYPE" type="xsd:string"/>
<xsd:element name="TIMERERD" type="xsd:int"/>
<xsd:element name="LOGRERD" type="xsd:int"/>
<xsd:element name="FAVTYPE" type="xsd:string"/>
<xsd:element name="MODIFICATN" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
<xsd:element name="CLASSNUM" type="xsd:int"/>
<xsd:element name="CLASSNAME" type="xsd:string"/>
<xsd:element name="GROUPTYPE" type="xsd:string"/>
<xsd:element name="TIMERERD" type="xsd:int"/>
<xsd:element name="LOGRERD" type="xsd:int"/>
<xsd:element name="FAVTYPE" type="xsd:string"/>
<xsd:element name="MODIFICATN" type="xsd:string"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="SMLG_MODIFYInput">
<wsdl:part name="GROUPTYPE" type="xsd:string"/>
<wsdl:part name="SET_LOCK" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="SMLG_MODIFYOutput">
<wsdl:part name="ERFC_MODIFICATIONS" type="tns:ERFC_MODIFICATIONS"/>
<wsdl:part name="CLASSNUM" type="xsd:int"/>
<wsdl:part name="CLASSNAME" type="xsd:string"/>
<wsdl:part name="GROUPTYPE" type="xsd:string"/>
<wsdl:part name="TIMERERD" type="xsd:int"/>
<wsdl:part name="LOGRERD" type="xsd:int"/>
<wsdl:part name="FAVTYPE" type="xsd:string"/>
<wsdl:part name="MODIFICATN" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="SMLG_MODIFYPT">
<wsdl:operation name="SMLG_MODIFYOperation">
<wsdl:input message="SMLG_MODIFYInput"/>
<wsdl:output message="SMLG_MODIFYOutput"/>
<wsdl:fault message="ctclib:BAPIException" name="BAPIException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SMLG_MODIFYBinding" type="SMLG_MODIFYPT">
<ctc:binding transport="com.sap.mw.jco"/>
<wsdl:operation name="SMLG_MODIFYOperation">
<ctc-bapi:function name="SMLG_MODIFY"/>
<wsdl:input>
<ctc:body encodingStyle="ctc:SCHEMA2ABAP">
<ctc-bapi:partbinding name="GROUPTYPE">
<field elementname="GROUPTYPE">
<name>GROUPTYPE</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="SET_LOCK">
<field elementname="SET_LOCK">
<name>SET_LOCK</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
</ctc:body>
</wsdl:input>
<wsdl:output>
<ctc:body encodingStyle="ctc:SCHEMA2ABAP">
<ctc-bapi:partbinding name="ERFC_MODIFICATIONS">
<table elementname="ERFC_MODIFICATIONS" jcoName="ERFC_MODIFICATIONS">
<structure elementname="RZLLIMODGP" jcotype="RZLLIMODGP">
<field elementname="CLASSNUM">
<name>CLASSNUM</name>
<type>NUMC</type>
</field>
<field elementname="CLASSNAME">
<name>CLASSNAME</name>
<type>CHAR</type>
</field>
<field elementname="GROUPTYPE">
<name>GROUPTYPE</name>
<type>CHAR</type>
</field>
<field elementname="TIMERERD">
<name>TIMERERD</name>
<type>NUMC</type>
</field>
<field elementname="LOGRERD">
<name>LOGRERD</name>
<type>NUMC</type>
</field>
<field elementname="FAVTYPE">
<name>FAVTYPE</name>
<type>CHAR</type>
</field>
<field elementname="MODIFICATN">
<name>MODIFICATN</name>
<type>CHAR</type>
</field>
</structure>
</table>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="CLASSNUM">
<field elementname="CLASSNUM">
<name>CLASSNUM</name>
<type>NUMC</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="CLASSNAME">
<field elementname="CLASSNAME">
<name>CLASSNAME</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="GROUPTYPE">
<field elementname="GROUPTYPE">
<name>GROUPTYPE</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="TIMERERD">
<field elementname="TIMERERD">
<name>TIMERERD</name>
<type>NUMC</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="LOGRERD">
<field elementname="LOGRERD">
<name>LOGRERD</name>
<type>NUMC</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="FAVTYPE">
<field elementname="FAVTYPE">
<name>FAVTYPE</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
<ctc-bapi:partbinding name="MODIFICATN">
<field elementname="MODIFICATN">
<name>MODIFICATN</name>
<type>CHAR</type>
</field>
</ctc-bapi:partbinding>
</ctc:body>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="SMLG_MODIFYService">
<wsdl:port binding="SMLG_MODIFYBinding" name="SMLG_MODIFYServicePort"/>
</wsdl:service>
</wsdl:definitions>
>
My purpose is to create a .cproc file which will pass values to this wsdl file.I dont know how to pass as the table which the function module accepts as input is output in wsdl.so i am not aware how to pass value.Kindly help me out how to create a .cproc file for it
Thanks
NeetaIt is not finding the correct URL - hence the 404 - page not found error.
Correct the URL and try again. -
List problem while calling report from froms
forms 6i i am using.
i am passing parameters to report from my form.
in report i have company parameter.
user select ALL/Specific
i populate list for specific on run time like with this query.
Populate_Group_With_Query(rg_id,'select sym_code,sym_code from companies');
but how can i populate companies name along with all option in my list item.query works fine..
now i have all in my list along with other sym_code.
but when i give ...ALL... as initial value in my list item..
it gives error
initial value does not match available list items.
even all is in list..
Maybe you are looking for
-
How to inactivate Error Message - 'an invoice as been posted at a later da'
Hi, Experts, When posting customer invoices - a mssg comes up and states that an invoice as been posted at a later date. Would we be able to remove this comment as it is an extra keystroke that we do not need - takes time to address and we always ha
-
SWFVISU entry for Travel workflow
Hi Experts, I have copied the standard travel request workflow & customized it. For approval I have user decision step & all the tasks used in my workflow are custom ones. There are no std tasks. Currently when I open the workitem from UWL i see that
-
Need help with arrays in a survey
I am making a survey using arrays to store the answers to 2 questions and output the frequencies of each answer, as well as the average rating for each question. When I do it in a structured manner, it works properly: import java.text.DecimalFormat;
-
Find out the area of a JText field that is being used by HTML.
I would like to have a JTextField that contains rendered HTML scale the HTML to fill the entire textfeild. Any ideas or suggestions as to how to go about this? I image the text filed contains the line "I am a tiny little mouse" Then if the sentence w
-
How to automatically save the Report Output in a Folder on Disk
Dear All, Please advice how can I 'automatially' save the output of my report ( a text file) in a folder on my disk. I need this functionality in order to send the output as an SMS. Waiting for your valuable inputs, Alok.