Test external webservice from any ABAP transaction or ABAP workbench
Hi,
Is there any option/way from ABAP workbench (or any other SAP tCode) to test an external webservice.
Basically i used to use tools like XMLSPY or SoapUI to check any external webserivice e.g. http://www.webservicex.net/CurrencyConvertor.asmx?WSDL
with this i could get confirmation that the webservice provider is indeed up and working.
these tools allowed me to create a request soap message (request payload) and send it to the endpoint, and showed the response soap message.
This kind of testing i would like to do from SAP ABAP workbench or any sap tCode.
what is the easiest way to test quickly.
thanks,
madhu.
Hi,
SOAP UI is definitely the easier option but you could generate the proxy class in ABAP workbench and test that as described here: [http://www.netweavercentral.com/?p=272|http://www.netweavercentral.com/?p=272]
Gregor
Similar Messages
-
Execute external WebService from abap
Hi Gurus!
Is it possible to execute an external WebService from an abap function/program without using the XI?
Best regards,
Adrianoyou can do this.
if you are on WAS6.4 there is a tool available within ABAP work bench to generate client proxy.
if you are on WAS 6.20 then you have to use class cl_http_client to consume the webservice,
check out the following weblogs for code sample
Send SMS to India from ABAP
BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP
Regards
Raja -
How To : Call External Webservice from BPEL and pass SOAP Message to the WS
Hello All-
Greetings to all BPEL gurus. I am currently facing difficulties in calling an External Webservice from my BPEL Process and passing SOAP Message to it. The details are below:
<strong>1. The BPEL process, using database polling feature of DB Adapter, will get the records from the database.</strong>
<strong>2. Transform the message</strong>
<strong>3. Call the External Webservice and pass the transformed message as the input to it. However the Webservice expects the BPEL process to send SOAP headers in the input message.</strong>
I am struggling on how to put the transformed message within a SOAP envelope in the BPEL process.
If anyone had similar requirements and have successfully been able to send SOAP messages from BPEL process to an external webservice, kindly let me know.
Also if there is some kind of documentation or any link in the forum that I can refer, please let me know that as well.
I am new to Webservice integration using BPEL and would really appreciate your help.
Thanks In Advance
Regards,
DibyaHi Dharmendra,
I am trying to send a SOAP message from my BPEL process to a web service. I have a complete SOAP message in a complex variable defined in the wsdl for the partnerlink (web service). My problem is that when I invoke the partnerlink it fails even though the content shown in the BPEL console looks valid.
I have set up obtunnel to see what I am actually sending out from BPEL. You mention that BPEL creates the SOAP envelope automatically.
I think that my problem is a result of this automatic SOAP envelope that BPEL is creating. Do you know if there is a way to turn it off?
This is what I see in the TCP monitor, please note the double SOAP env:Body:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <env:Body> <RCMR_IN000002NR01 xmlns="urn:hl7-org:v3" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<env:Header>
<wsa:To xmlns:wsa="http://www.w3.org/2005/08/addressing">http://testhost/CCS/Service_Endpoint</wsa:To>
<wsa:From xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Address>http://localhost/CCS/Service_Endpoint</wsa:Address>
<wsa:Metadata>
<device xmlns:hl7="urn:hl7-org:v3">
</device>
</wsa:Metadata>
</env:Header>
<env:Body>
<RCMR_IN000002NR01>
</RCMR_IN000002NR01>
</env:Body>
</RCMR_IN000002NR01>
</env:Body>
</env:Envelope>
Any help is appreciated.
Regards,
Aagaard
Edited by: Aagaard on Oct 30, 2008 8:59 PM
Should have mentioned. I am using BPEL 10.1.3.4
Edited by: Aagaard on Oct 31, 2008 8:43 AM
I have opened a new thread for this question so as to not confuse the issue more than necessary.
How many SOAP envelopes do you really need? -
How can we call a external webservice from sandboxed webpart?
Hi,
I need to call an external webservice from sandboxed visual webpart in 2013. And that webpart would be used in office-365 site. Please let me whether it is possible or not.
Thanks,
ArindamSandboxed solution server code can't call an external web service. There are ways to write a sandboxed solution that calls a web service using client side code. Here's a sample of a silverlight application deployed via the sandbox that can call
an external web service.
http://msdn.microsoft.com/en-us/library/gg615590(v=office.14).aspx
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
Call more external webservice from apex
How can call more external webservice from apex - consecutively one after another - one execute, than next used as a parameter of the previous webservice results
Sandboxed solution server code can't call an external web service. There are ways to write a sandboxed solution that calls a web service using client side code. Here's a sample of a silverlight application deployed via the sandbox that can call
an external web service.
http://msdn.microsoft.com/en-us/library/gg615590(v=office.14).aspx
Paul Stork SharePoint Server MVP
Principal Architect: Blue Chip Consulting Group
Blog: http://dontpapanic.com/blog
Twitter: Follow @pstork
Please remember to mark your question as "answered" if this solves your problem. -
How to connect external webservice from ABAP
Hi,
Please see code pasted below and tell me what is wrong.
We try to connect external webservice via https. Should I install certificate is SAP for this connection? (if YES, how can I do this?)
Should I configure something else in SAP to connect external webservice via https?
DATA: client type ref to if_http_client,
lv_content type String,
lv_xml_string type string,
lv_length type I,
lv_response type I,
lv_node type ref to IF_IXML_NODE,
lv_xml_doc type ref to cl_xml_document.
****Create the HTTP client
call method cl_http_client=>create_by_url
EXPORTING
url = 'http://services-demo.krd.pl/raina/1.0/KrdAPI.asmx'
IMPORTING
client = client
EXCEPTIONS
others = 1.
CALL METHOD CL_HTTP_CLIENT=>CREATE
EXPORTING
HOST = 'services-demo.krd.pl'
SERVICE = '443'
SCHEME = '2'
PROXY_HOST =
PROXY_SERVICE =
SCHEME = SCHEMETYPE_HTTP
SSL_ID =
SAP_USERNAME =
SAP_CLIENT =
IMPORTING
CLIENT = client.
EXCEPTIONS
ARGUMENT_NOT_FOUND = 1
PLUGIN_NOT_ACTIVE = 2
INTERNAL_ERROR = 3
others = 4
CONCATENATE
'<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
' xmlns:xsd="http://www.w3.org/2001/XMLSchema" '
'xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rain="http://raina.krd.pl">'
'<soapenv:Header/>'
'<soapenv:Body>'
'<rain:Login soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">'
'<id xsi:type="xsd:string">B03EB34F02</id>'
'<password xsi:type="xsd:string">Akquinet99</password>'
'<appId xsi:type="xsd:string">test</appId>'
'<appInstId xsi:type="xsd:string">test</appInstId>'
'<custom xsi:type="xsd:string">test</custom>'
'</rain:Login>'
'</soapenv:Body>'
'</soapenv:Envelope>'
INTO lv_content.
CALL METHOD client->request->set_header_field
EXPORTING
name = '~request_method'
value = 'POST'.
CALL METHOD client->REQUEST->SET_HEADER_FIELD
EXPORTING
NAME = '~request_uri'
VALUE = '/raina/1.0/KrdAPI.asmx?'.
CALL METHOD client->request->set_header_field
EXPORTING
name = 'Content-Type'
value = 'text/xml; charset=utf-8'.
call method client->request->set_header_field
EXPORTING
name = 'SOAPAction'
value = 'Login'.
lv_length = STRLEN( lv_content ).
call method client->request->set_cdata
EXPORTING
data = lv_content
offset = 0
length = lv_length.
****Make the call
client->send( ).
****Receive the Response Object
call method client->receive
EXCEPTIONS
http_communication_failure = 1
http_invalid_state = 2
http_processing_failed = 3
others = 4.
*****Get the response content
client->response->GET_STATUS( IMPORTING CODE = lv_response ).
lv_xml_string = client->response->get_cdata( ).
Regards,
MichalHI ,
Error in accessing External Web Service
Calling a secured external web service from ABAP
Edited by: A kumar on Aug 21, 2008 11:58 AM -
Facing issue in invoking an external webservice from 11G Bpel
Hi,
I am facing an issue in Invoking PIM webservice from 11G soa.. getting the following error in the invoke activity(Invoke calls PIM webservice).. the same thing used to work in 10.1.3.4 where i set username/pwd in the bpel.xml for that partnerlink. here in 11G i did it through "Configure WS policy" and setting oracle/wss_username_token_client_policy to true..
the error message is
<messages>
<input>
<PublicationService_GetBatchSystems_InputVariable>
<part name="body">
<PublicationService_GetBatchSystems>
<batchAndLang>
<BatchId>1543</BatchId>
</batchAndLang>
</PublicationService_GetBatchSystems>
</part>
<part name="header">
<ServiceBean_Header/>
</part>
</PublicationService_GetBatchSystems_InputVariable>
</input>
<fault>
<bpelFault>
<faultType>
<message>0</message>
</faultType>
<remoteFault>
<part name="summary">
<summary>InvalidHeader: Invalid or missing header in request.</summary>
</part>
<part name="detail">
<detail>javax.xml.ws.soap.SOAPFaultException: InvalidHeader: Invalid or missing header in request.</detail>
</part>
<part name="code">
<code>null</code>
</part>
</remoteFault>
</bpelFault>
</fault>
<faultType>
<message>0</message>
</faultType>
</messages>
i compared the payload from 10G and 11G the only difference i could find is the order of soap body and header is different.. is it because of this??
i checked in wsdlt the order is correctly declared (first header then body).. but whenever i am creating a variable on this Msg type.. and expanding the variable in jdev the order is getting reveresed.. not sure why?? there is no change in the flow from 10G to 11G.. apart from the migration.Thanks.. This works..
But it gets lost whenever we redeploy that process..
And of course even though I am seeing http user & http password can be configured in composite.xml.. It is not taking effect..
After redeploy, still the HTTP UserName & Password is blank.
<reference name="ABC"
ui:wsdlLocation="ABC.wsdl">
<interface.wsdl interface="http://oracle.abc/#wsdl.interface(WSDL_INTERFACE)"/>
<binding.ws port="http://oracle.abc/#wsdl.endpoint(ABC/ABCHttpPort)"
location="ABC.wsdl">
<wsp:PolicyReference URI="oracle/wss_username_token_client_policy"
orawsp:category="security" orawsp:status="enabled"/>
<wsp:PolicyReference URI="oracle/log_policy" orawsp:category="management"
orawsp:status="enabled"/>
</binding.ws>
<property name="oracle.webservices.auth.username" type="xs:string"
many="false" override="may">username</property>
<property name="oracle.webservices.auth.password" type="xs:string"
many="false" override="may">password.xxxxx</property>
</reference>
Client is interested in solving only through code not through UI..
Any thoughts..
Edited by: Raj.Sunnyvale on Mar 24, 2010 11:26 AM -
Consume external webservice from ABAP
Hello all,
Can we consume external web service from ABAP??
If yes please gimme a sample code to do that..
Thanks in advance..
Regards,
MayaCan we consume external web service from ABAP in version 4.7??
-
Getting exception while accessing External WebServices from Portal Componen
Hi,
We are using one external Temperature WebService and calling it from the proxy which is called by a Portal Component. My proxy name is TempService and portal component name is TempComponent.While calling the web service from portal component we are getting the exception. When I checked with log file, I got that invokeMethod() is failing and following exception is occuring :
Caused by: com.sap.engine.services.webservices.jaxm.soap.accessor.NestedSOAPException: IOError while working with the message. Check the nested Exception.
at com.sapportals.portal.prt.service.soap.SOAPService.call(SOAPService.java:197)
at com.sapportals.portal.prt.service.soap.PRTSOAPCall.invokeMethod(PRTSOAPCall.java:209)
at com.sap.portal.tutorial.translation.TempService.getTemp(TempService.java:158)
at com.sap.portal.tutorial.TempComponent.TempComponent.doContent(TempComponent.java:18)
Can some one help us to resolve it.
Thanks in advance,
ajayAs far as I know, webservices are working pretty well from SP2 Patch4. On patch3 hf2 I've had problems creating the proxy classes (especially for consuming .net webservices) and also gotten some runtime exception (cannot remember what they were).
Suggest you open an OSS against SAP with your specific problem. -
Error Consuming a webservice from ABAP
Hi all,
I am consuming an external webservice from abap. I created teh proxy using WSDl file. While testing teh service its giving an exception like this-
"JAXB unmarshalling exception: Unable to create an instance of de.*******v2.MeldungType; nested exception is javax.xml.bind.UnmarshalExcept
ion: Unable to create an instance of de.****.MeldungType# - with linked exception:#[java.lang.InstantiationException]"
With a soapfaultcode: 1..
can any one help out in arriving at teh reason for this..
Regards
SandeepI've seen lots of unmarshalling errors whilst trying to consume web services via Web Dynpro Java... Usually, it was due to an inconsistency between the WSDL file being used and the underlying web service definition. It might be worth checking the WSDL you are using is correct and up to date, in case the underlying service interface has changed.
Also worth checking if you have any simple boolean type parameters defined as part of the service interface - they have to have a value assigned when you call the service and cannot be null.
HTH. -
What is the use of a proxy client to test web service from ABAP code?
In NW640, we need to create a proxy client to test our web service from a ABAP code.
Why is this so? What is the significance of a proxy client? Is this mandatory? Can we test the webservice from a ABAP code without proxy client?Hi Gopal,
There are two types of proxies that can be generated from ABAP - the client proxy (to call an internet web service) and a server proxy (to communicate with XI). It sounds to me like you are looking for information about the client proxy, if so you can see the following link from SAP Help:
http://help.sap.com/saphelp_nw04s/helpdata/en/e5/a68d10f4eb894087fc9c1c3f9ae433/frameset.htm
Hope this helps.
Sudha -
XML Parse problem consuming external webservice
Hi all,
I'm testing consuming an external webservice from a WAS 6.40 client. I generated an ABAP proxy for it .
I managed to get the correct soap request out and receiving the response, but while parsing the SOAP XML response back into the output parameter, I'm running into a parse error :
- <CX_XMS_SYSTEM_ERROR>
<ID>PARSE_APPLICATION_DATA</ID>
<P1>Response Message</P1>
<P2>CX_ST_MATCH_TYPE</P2>
<P3>/1SAI/TXS00000000000000000003</P3>
<P4>XML Bytepos.: 354 XML Path: root(1)ns1:checkValidSerialNumbersResponse(1)checkValidSerialNumbersReturn(1) Error Text: System expected a value for the type g</P4>
<INFO />
<CATEGORY>XIProxy</CATEGORY>
<AREA>ABAP</AREA>
<RETRY>M</RETRY>
</CX_XMS_SYSTEM_ERROR>
- <CX_XMS_SYSERR_PROXY>
<CO_AREA_ABAP>ABAP</CO_AREA_ABAP>
</CX_XMS_SYSERR_PROXY>
</cls:CX_XMS_SYSERR_PROXY>
- <cls:CX_ST_MATCH_TYPE id="o163">
The response parameter is defined as xsd:string ( and string in the generated ABAP structure ).
IF the byteposition is correct there would be a problem
with the '?' characeter being in the response.
What does the datatype 'g' mean ?
see also in the error message :
<ACTUAL_NAMESPACE />
<ACTUAL_VALUE />
</CX_ST_MATCH>
- <CX_ST_MATCH_TYPE>
<EXPECTED_TYPE>g</EXPECTED_TYPE>
</CX_ST_MATCH_TYPE>
Any ideas ? Using 2 other soap clients give no issue what soever...:(<wsdl:definitions targetNamespace="http://shareTax.DataExchange.NonLiveSchema.Web.Service/">
u2212
<wsdl:types>
u2212
<s:schema elementFormDefault="qualified" targetNamespace="http://shareTax.DataExchange.NonLiveSchema.Web.Service/">
u2212
<s:element name="processInputXML">
u2212
<s:complexType>
u2212
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="InputXML" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
u2212
<s:element name="processInputXMLResponse">
u2212
<s:complexType>
u2212
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="processInputXMLResult" type="s:string"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
u2212
<wsdl:message name="processInputXMLSoapIn">
<wsdl:part name="parameters" element="tns:processInputXML"/>
</wsdl:message>
u2212
<wsdl:message name="processInputXMLSoapOut">
<wsdl:part name="parameters" element="tns:processInputXMLResponse"/>
</wsdl:message>
u2212
<wsdl:portType name="NonLiveSchemaSoap">
u2212
<wsdl:operation name="processInputXML">
<wsdl:input message="tns:processInputXMLSoapIn"/>
<wsdl:output message="tns:processInputXMLSoapOut"/>
</wsdl:operation>
</wsdl:portType>
u2212
<wsdl:binding name="NonLiveSchemaSoap" type="tns:NonLiveSchemaSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
u2212
<wsdl:operation name="processInputXML">
<soap:operation soapAction="http://shareTax.DataExchange.NonLiveSchema.Web.Service/processInputXML" style="document"/>
u2212
<wsdl:input>
<soap:body use="literal"/>
</wsdl:input>
u2212
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
u2212
<wsdl:binding name="NonLiveSchemaSoap12" type="tns:NonLiveSchemaSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
u2212
<wsdl:operation name="processInputXML">
<soap12:operation soapAction="http://shareTax.DataExchange.NonLiveSchema.Web.Service/processInputXML" style="document"/>
u2212
<wsdl:input>
<soap12:body use="literal"/>
</wsdl:input>
u2212
<wsdl:output>
<soap12:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
u2212
<wsdl:service name="NonLiveSchema">
u2212
<wsdl:port name="NonLiveSchemaSoap" binding="tns:NonLiveSchemaSoap">
<soap:address location="http://89.234.8.200:8085/shareTaxDataExchangeWebService/NonLiveSchema.asmx"/>
</wsdl:port>
u2212
<wsdl:port name="NonLiveSchemaSoap12" binding="tns:NonLiveSchemaSoap12">
<soap12:address location="http://89.234.8.200:8085/shareTaxDataExchangeWebService/NonLiveSchema.asmx"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
I am facing same problem.
This is WSDL. Could you please tell if anything is wrong in WSDL?
I am not aware of WSDL files. -
Error while testing External Web Service Integration
I'm getting an error when I try to test an external webservice from Studio. After performing the steps to create an external webservice integration with SOAP, When I right-click on the .wsid file and choose "Test Service Operations" and chose the communication scenario and submit request, I get an error "A technical error error occured AP-RC-BDS-WS".
I'm not able to call the service visa the ABSL script as well. When I debug, I get an error in the response CommFault as,
"SoapfaultCode: 5 Server Error."
I'm able to successfully test the web service from SOAPUI.
Regards,
Srikanthimport ABSL;
var Request: Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj.Request;
var Response: Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj.Response;
Request.ZMT_Acc_Prof_Req_obj.BUSINESS_GROUP = this.BusinessGroup;
Request.ZMT_Acc_Prof_Req_obj.ZONE = this.Zone;
Request.ZMT_Acc_Prof_Req_obj.REPRESENTATIVE = this.Representative;
Request.ZMT_Acc_Prof_Req_obj.FROM_DATE = this.DateRange.StartDate.ToString();
Request.ZMT_Acc_Prof_Req_obj.TO_DATE = this.DateRange.EndDate.ToString();
Request.ZMT_Acc_Prof_Req_obj.REPORT_TYPE = this.ReportType;
Request.ZMT_Acc_Prof_Req_obj.PROJS = this.Projects.ToString();
Request.ZMT_Acc_Prof_Req_obj.SPECS = this.Specs.ToString();
Request.ZMT_Acc_Prof_Req_obj.SALES_CALL = this.SalesCalls.ToString();
Request.ZMT_Acc_Prof_Req_obj.TRAINING_ACTS = this.Training.ToString();
//var Response = Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj(Request, " ", "AccountProfileScenario");
Response = Library::AccProfExWebServInt.ZSI_Acc_Prof_Req_Obj(Request, "", "AccountProfileScenario");
var CommFault = Response.CommunicationFault;
var CommFaultItem = CommFault.Item;
//Display Errors if any and return
foreach (var item in CommFaultItem){
raise MsgCommunicationFault.Create("E");
return;
//Display success message
var ResponseUUID = Response.ZMT_Acc_Prof_Res_obj.EV_RESULT;
raise MsgExternalResponse.Create("S"); -
Calling a webservices from Oracle 10G ( 10.2.0.2)
Hi:
I am in the process of putting a database Java stored procedure that can call an external webservices.
PL/SQL Wrapper -> Java Stored Procedure-> External Web services
I loaded the following jars in the dataase.
dbwsa.jar
dbwsclient.jar
1. I am having issues consuming this external webservice from SQL*PLUS. Do you know whether I need to load any other JARS ?
2. How can I debug this issue ? I enabled TCP Monitor in JDeveloper and don't see anything when I call the PL/SQL wrapper in SQL*PLUS.
3. I can use a Java client and tested the Web services OK.
error message:
SQL> l
1 declare
2 x varchar2(100);
3 begin
4
5 x := tester.test_db1();
6* end;
SQL> /
calling
http://XX.XX.YY.121:8988/Application9-ViewController-context-root/MyWebService1S
oapHttpPort
java.rmi.RemoteException: Error parsing envelope; nested exception is:
javax.xml.soap.SOAPException: Error parsing envelope
at
view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
ub.java:99)
at
prpd.MyWebService1SoapHttpPortClient.sayhello2(MyWebService1SoapHttpPortClient.j
ava:41)
at prpd.TEST_DB.TEST_DB1(TEST_DB.java:21)
Caused by: javax.xml.soap.SOAPException: Error parsing envelope
at
oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
tation11.java:103)
at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:75)
at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:934)
at
oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:692)
at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:688)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:207)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:112)
at
view.proxy.runtime.MyWebService1SoapHttp_Stub.sayhello2(MyWebService1SoapHttp_St
ub.java:76)
... 2 more
Caused by: java.lang.IllegalArgumentException
at oracle.xml.parser.v2.XMLParser.setAttribute(XMLParser.java:794)
at
oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplemen
tation11.java:54)
... 9 more
PL/SQL procedure successfully completed.
SQL> /
thx
Rajthanks Tugduall for the comments. here are the instructions I followed to create a java stored procedure that can call a webservices. Unfortunately, this seems like a very complex task. Do you have any ideas how I could debug or troubleshoot this issue ?
Please note that I used JDeveloper to generate the client code.
========================================================
1. download the dbws-callout-utility-10R2.zip from OTN at:
http://www.oracle.com/technology/sample_code/tech/java/jsp/dbwebservices.html
2. create an application/project with 1.4 JDK.
3. create a web service by ‘Business Tier’->Web Service->Web Service Proxy->UDDI
4. next… to ‘Search for’, type ‘quote’.
5. from the list select one. For me ‘Quote of day’ was picked.
6. click Next all the way to Finish.
7. from the ‘Application Sources’ select ‘QuotoProxy’ then find its main method.
8. at the section
// Add your own code here, add the line like:
System.out.println("quote "+myPort.getQuote());
9. run it to see its return.
10. cteate a class that has a method to call client method to be invoked (static)
like the following:
package dbws;
import dbws.QotdPortClient;
public class MainClientStub {
public MainClientStub() {
public static String getMyQoute(){
QotdPortClient myClient = null;
try {
myClient = new QotdPortClient();
return myClient.getQuote();
} catch (Exception e) {
e.printStackTrace();
return null;
note that the package name in your project.
11. create a deployment profile as ‘JAR File’. Uncheck the box ‘Project Dependencies’
12. deploy it to the local box. ‘Deploy to JAR File’.
13. unzip the dbws-callout-utility-10R2.zip to get dbwsa.jar.
14. execute the following from command line:
loadjava –user test/[email protected] -resolve –verbose –synonym –grant public to dbwsa.jar myarchive1.jar
loadjava -user test/test@orcl1020 -resolve -verbose -synonym -genmissing -grant public myarchive1.j
ar dbwsa.jar
loadjava -user sys/<sys_pass> -resolve -verbose -synonym -genmissing -grant public myarchive1.jar dbwsa.jar
15. create a function like the following:
CREATE OR REPLACE FUNCTION teststub RETURN VARCHAR2 AS
LANGUAGE JAVA NAME ‘dbws.MainClientStub.getMyQoute() return java.lang.String’;
16. Run at sqlplus: Select teststub from dual;
====================================================== -
Hi all,
I'm a bit confused in using the transaction codes in ABAP like se11,...so on.
What code can be used for what application....so on.?
Can any one please help me out in giving the transaction codes in ABAP.
Please give them in a list wise...i.e.,
Transaction code -
What Application(such as editor, smartforms, function modules).
ID: [email protected]
Bye,
SAI KUMARHI,
USMM Pressing F8 will display all hotpacks applied.
SEARCH_SAP_MENU Show the menu path to use to execute a given tcode. You can search by transaction code or menu text.
DI02 ABAP/4 Repository Information System: Tables.
LSMW Legacy System Migration Workbench. An addon available from SAP that can make data converstion a lot easier. Thanks to Serge Desland for this one.
OSS1 SAP Online Service System
OY19 Compare Tables
SM13 Update monitor. Will show update tasks status. Very useful to determine why an update failed.
S001 ABAP Development Workbench
S001 ABAP/4 Development Weorkbench. (from [email protected])
S002 System Administration. (from [email protected])
SA38 Execute a program. (from [email protected])
SCAT Computer Aided Test Tool
SCU0 Compare Tables
SE01 Old Transport & Corrections screen
SE03 Groups together most of the tools that you need for doing transports. In total, more than 20 tools can be reached from this one transaction.
SE09 Workbench Organizer
SE10 New Transport & Correction screen
SE11 ABAP/4 Dictionary Maintenance SE12 ABAP/4 Dictionary Display SE13 Maintain Technical Settings (Tables)
SE12 Dictionary: Initial Screen - enter object name. (from [email protected])
SE13 Access tables in ABAP/4 Dictionary. (from [email protected])
SE14 Utilities for Dictionary Tables
SE15 ABAP/4 Repository Information System
SE16 Data Browser: Initial Screen. (from [email protected])
SE16N Table Browser (the N stands for New, it replaces SE16). Provided by Smijo Mathew.
SE17 General Table Display
SE24 Class Builder
SE30 ABAP/4 Runtime Analysis
SE32 ABAP/4 Text Element Maintenance
SE35 ABAP/4 Dialog Modules
SE36 ABAP/4: Logical Databases
SE37 ABAP/4 Function Modules
SE38 ABAP Editor
SE39 Splitscreen Editor: Program Compare
SE41 Menu Painter
SE43 Maintain Area Menu
SE48 Show program call hierarchy. Very useful to see the overall structure of a program. Thanks to Isabelle Arickx for this tcode.
SE49 Table manipulation. Show what tables are behind a transaction code. Thanks to Isabelle Arickx for this tcode.
SE51 Screen Painter: Initial Screen. (from [email protected])
SE54 Generate View Maintenance Module
SE61 R/3 Documentation
SE62 Industry utilities
SE63 Translation
SE64 Terminology
SE65 R/3 document. short text statistics SE66 R/3 Documentation Statistics (Test!)
SE68 Translation Administration
SE71 SAPscript layout set
SE71 SAPScript Layouts Create/Change
SE72 SAPscript styles
SE73 SAPscript font maintenance (revised)
SE74 SAPscript format conversion
SE75 SAPscript Settings
SE76 SAPscript Translation Layout Sets
SE77 SAPscript Translation Styles
SE80 ABAP/4 Development Workbench
SE81 SAP Application Hierarchy
SE82 Customer Application Hierarchy
SE83 Reuse Library. Provided by Smiho Mathew.
SE84 ABAP/4 Repository Information System
SE85 ABAP/4 Dictionary Information System
SE86 ABAP/4 Repository Information System
SE87 Data Modeler Information System
SE88 Development Coordination Info System
SE91 Maintain Messages
SE92 Maintain system log messages
SE93 Maintain Transaction. (from [email protected])
SEARCH_SAP_MENU From the SAP Easy Access screen, type it in the command field and you will be able to search the standard SAP menu for transaction codes / keywords. It will return the nodes to follow for you.
SEU Object Browser
SHD0 Transaction variant maintenance
SM04 Overview of Users (cancel/delete sessions)
SM12 Lock table entries (unlock locked tables)
SM21 View the system log, very useful when you get a short dump. Provides much more info than short dump
SM30 Maintain Table Views. (from [email protected])
SM31 Table Maintenance
SM32 Table maintenance
SM35 View Batch Input Sessions
SM37 View background jobs
SM50 Process Overview. (from [email protected])
SM51 Delete jobs from system (BDC)
SM62 Display/Maintain events in SAP, also use function BP_EVENT_RAISE
SMEN Display the menu path to get to a transaction
SMOD/CMOD Transactions for processing/editing/activating new customer enhancements.
SNRO Object browser for number range maintenance. (from [email protected])
SPRO Start SAP IMG (Implementation Guide). (from [email protected])
SQ00 ABAP/4 Query: Start Queries
SQ01 ABAP/4 Query: Maintain Queries
SQ02 ABAP/4 Query: Maintain Funct. Areas
SQ03 ABAP/4 Query: Maintain User Groups
(Queries,Funct. Areas,User Groups are stored in table AQGQDOC and AQLQDOC )
SQ07 ABAP/4 Query: Language Comparison
ST05 Trace SQL Database Requests. (from [email protected])
ST22 ABAP Dump analysis
SU53 Display Authorization Values for User. (from [email protected])
WEDI EDI Menu. IDOC and EDI base.
WE02 Display an IDOC
WE07 IDOC Statistics
rgds,
bharat.
Maybe you are looking for
-
I have 2 different ipods, how do I make two totally different libraries?
My brother just got an ipod nano, and ive had an ipod mini for about a year. I want to know if I can make two different libraries with different music, and if I can, how do I do it?
-
I just got a new MacBook Pro, plugged my iPod into it and noticed all my songs didn't transfer, including the 6 new ones I just purchased. I then brought it back to my PC to sync, and lost all my songs on my iPod. I'm now receiving all kinds of wei
-
Printing date in the cheque date box column
Hello all, I want to print the date in the cheque box column automatically.I used sy-datum.but its not coming in the proper field of day,month and year.can anyone please help me to do it . Thank in advance.
-
Incorrect numeric date displayed in month view
today is Saterday July 1st however when I open iCal it shows the current date to be Friday June 30th... (the icon on the dock is correct showing the 1st) In day and week views iCal believes that the current date is Friday June 30th however stranger t
-
Dear Gurus, My customer want create a BOM to produce a material A with the material B. The problem is the material B used too the material A to be produced. We have no error message. SAP loop in the standard cost estimate and give a valuation for mat