How to use a WSDL file to call webservice? Help!
Hi Experts,
I have exposed a SAP function module as webservice using the
Utilities -> More Utilities -> Create Web Service -> From Function module
What does this step actually does? Does it create some kind of web application like BSP for the function module in the background?
After creating the web service I have released the service definition for the SOAP runtime using the transaction WSCONFIG.
Finally I have generated the WDSL file ofr the webservice using WSADMIN transaction.
After this how will my third party application like Java will use the WSDL? Will I need any connector software to be installed in Java side.
How exactly will java call my webservice using WSDL?
What actually happens or what is the message flow when java application calls by webservice?
Kindly help.
Thanks
Gopal
Hi, Your solution should be correct and it's a quite common approach for Login authentication.Informatica's webservice provider also need 2 steps for calling its webservice1. Getting the session ID using username and password 2. Use the session ID to call any active operation 3. Use the session ID to log out if webservice do not have any time out settings for each session. SOAP standard is listed in the WSDL of saleforce webservice. It affects if you cannot find/call any operation in PowerCenter level. My lastest information is for PWC 9.1 version only, I don't know if they have enhanced this function in 9.5. If you can call the operation, you can just put it (SOAP standard) way first. Regards,Felix
Similar Messages
-
How to use this .WSDL file
Hello,
I was given this .WSDL file and asked to import it into PI. It's a very simple operation. From ECC we will send some user data in the header and some Ticket data in the body. It is forwarded by PI to 3rd party ticket system. The result sent back is the ticket ID that is created in ticket system.
However i'm facing difficulties with this. Please see actions i've done below.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions
xmlns:soap = "http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tm = "http://microsoft.com/wsdl/mime/textMatching/"
xmlns:soapenc = "http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime = "http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:tns = "http://srv-dca-sc-web1.AAAA.com/"
xmlns:s = "http://www.w3.org/2001/XMLSchema"
xmlns:http = "http://schemas.xmlsoap.org/wsdl/http/"
targetNamespace = "http://srv-dca-sc-web1.AAAA.com/"
xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault = "qualified" targetNamespace = "http://srv-dca-sc-web1.AAAA.com/">
<s:element name = "HrwHeader" type = "tns:HrwHeader"/>
<s:complexType name = "HrwHeader">
<s:sequence>
<s:element minOccurs = "0" maxOccurs = "1" name = "Username" type = "s:string"/>
<s:element minOccurs = "0" maxOccurs = "1" name = "Password" type = "s:string"/>
<s:element minOccurs = "0" maxOccurs = "1" name = "EmployeeId" type = "s:string"/>
<s:element minOccurs = "1" maxOccurs = "1" name = "CompanyId" type = "s:int"/>
</s:sequence>
<s:anyAttribute/>
</s:complexType>
<s:element name = "CreateTicket">
<s:complexType>
<s:sequence>
<s:element minOccurs = "0" maxOccurs = "1" name = "description" type = "s:string"/>
<s:element minOccurs = "1" maxOccurs = "1" name = "serviceId" type = "s:int"/>
<s:element minOccurs = "1" maxOccurs = "1" name = "priorityId" type = "s:int"/>
<s:element minOccurs = "1" maxOccurs = "1" name = "levelId" type = "s:int"/>
<s:element minOccurs = "0" maxOccurs = "1" name = "thirdPartySystemID" type = "s:string"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name = "CreateTicketResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs = "1" maxOccurs = "1" name = "CreateTicketResult" type = "s:int"/>
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</wsdl:types>
<wsdl:message name = "CreateTicketSoapIn">
<wsdl:part name = "parameters" element = "tns:CreateTicket"/>
</wsdl:message>
<wsdl:message name = "CreateTicketSoapOut">
<wsdl:part name = "parameters" element = "tns:CreateTicketResponse"/>
</wsdl:message>
<wsdl:message name = "CreateTicketHrwHeader">
<wsdl:part name = "HrwHeader" element = "tns:HrwHeader"/>
</wsdl:message>
<wsdl:portType name = "TicketServiceSoap">
<wsdl:operation name = "CreateTicket">
<wsdl:documentation xmlns:wsdl = "http://schemas.xmlsoap.org/wsdl/">Create new ticket and return the Ticket ID as an integer</wsdl:documentation>
<wsdl:input message = "tns:CreateTicketSoapIn"/>
<wsdl:output message = "tns:CreateTicketSoapOut"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name = "TicketServiceSoap" type = "tns:TicketServiceSoap">
<soap:binding transport = "http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name = "CreateTicket">
<soap:operation soapAction = "http://srv-dca-sc-web1.AAAA.com/CreateTicket" style = "document"/>
<wsdl:input>
<soap:body use = "literal"/>
<soap:header message = "tns:CreateTicketHrwHeader" part = "HrwHeader" use = "literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use = "literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
</wsdl:definitions>
What i wanted to do was to create a service interface in PI that could be used in ECC to create a proxy of. The service interface needs to use the HRWheader and Ticket SoapIn combined. However when I import the .WSDL in an external definition i see three separate messages (header, soapin, soapout) and there is no way i can use the two messages in one SI.
I also tried importing the .WSDL using "do not extract" but that doesn't help either.
I also tried importing the .WSDL file as a Service Interface directly and it neatly creates a synchronous interfaces with the soapin as request and soapout as response, but it still doesn't show the header. If i check the WSDL tab for my newly created interface i also miss the reference to the Header message.
So my question is for some help and what would be the best way to handle this.
Kr
Regardshi ,
check this link ,
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6dbb8d
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0ea291c4f9
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0ec4fe1b3
In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.
So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.
Regards ,
venkat . -
I have the advanced calling on my galaxy note 4 but am not sure on how to use it or who I can call I watched video's that show me but it doesn't work please help!
This is also known as VoLTE or Voice over LTE. Like Vonage, but for cell phones. Advanced calling is turned on or off in your phones settings, usually near Call/Phone option. It allows an HD quality call between you and another Verizon customer who is using an AC-enabled phone. It also allows you to talk and surf simultaneously and conduct video calls. This AC requires Mobile Data to be on when out and about but can still be used on WiFi.The min do not count toward your data, however the video counts toward your data.
Some customers report poor call quality or dropped and missed calls when using this newer feature. Disabling AC usually helps quell those issues. -
How to use wscompile to generate code using a WSDL file?
I am working with JAX-RPC of Java Web Service ver: 1.1. I am intrested in making the WSDL file first and generating Java code from the WSDL file. On the following link:
http://java.sun.com/webservices/docs/1.1/tutorial/doc/JAXRPC6.html#wp80094
it says that wscompile can generate code using a WSDL file..:
<quote>
Table 11-3 wscompile Options
-import : read a WSDL file, generate the service's RMI interface and a template of the class that implements the interface
</quote>
and the wscompile software says this:
<quote>
C:\>wscompile
-import : generate interfaces and value types only
</quote>
can anyone tell me how to generated Java code from a WSDL file. As in, make the WSDL file (e.g. using XMLSpy) and then use that WSDL generate Java code.
ThanksI'm trying to generate code using wscompile under the struction in JAXRPC_Tutorial.pdf.
I issued the following command:
wscompile.sh -keep -gen:client -f:wsi -verbose config.xml
But I met with the following warning and I cann't find the produced java code, who know why? Thanks in advance!
warning: ignoring SOAP port "EmployeeDBPort": unrecognized transport
warning: Service "EmployeeDatabase" does not contain any usable ports
the config.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<configuration
xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<wsdl name="EmployeeDBService"
location="EmployeeDB.wsdl"
packageName="com.sun.xml.rpc.xml.EmployeeDB">
</wsdl>
</configuration> -
How MS SOAP 3.0 client invokes WL 7.0 Webservice WITHOUT using a WSDL file?
Hi all,
I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
webservice. Could anyone please post a sample VBScript codes invoking a soap service
on WL 7.0 WITHOUT using a WSDL file, for example at:
http://localhost:7001/HelloWorld/Hello
with the service method:
public org.w3c.dom.Element say(String something);
Thanks,
DovanHi,
As you might guess, we are not big VB users here :-) but we may have some C# code that
could be of some value.
What problem are you trying to solve by not using WSDL?
Just curious,
Bruce
Dovan Nguyen wrote:
Hi all,
I am looking for a sample VBScript using MS SOAP 3.0 client invoking a WL 7.0 Server
webservice. Could anyone please post a sample VBScript codes invoking a soap service
on WL 7.0 WITHOUT using a WSDL file, for example at:
http://localhost:7001/HelloWorld/Hello
with the service method:
public org.w3c.dom.Element say(String something);
Thanks,
Dovan -
How to use multiple video files??
hi all,
i am using flex 4 ...
now i have designed video player..
i used single flv file for execution..
how to use more flv files in tis program???
i have included program also..
can any one reply for this...
thanks in advance...
regards,
saran r
video.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="init()" height="700" >
<fx:Declarations>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<fx:Script>
<![CDATA[
import mx.core.UIComponent;
import flash.events.NetStatusEvent;
import flash.media.Video;
import flash.net.NetConnection;
import flash.net.NetStream;
private var nc:NetConnection;
private var stream:NetStream;
public var videoDuration:Number;
public var nsClient:Object = new Object();
private var videoComp:Video = new Video();
private var meta:Object = new Object();
private var timer:Timer = new Timer(100);
private var uiComp:UIComponent = new UIComponent();
private function init():void
nc = new NetConnection();
nc.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
nc.connect("rtmp://localhost/saran");
this.addElement(uiComp);
uiComp.addChild(videoComp);
timer.addEventListener(TimerEvent.TIMER,timerHandler);
timer.start();
private function netStatusHandler(event:NetStatusEvent):void
trace("Code ===>>> "+event.info.code);
if(event.info.code == "NetConnection.Connect.Success")
connectStream(nc);
private function connectStream(nc:NetConnection):void {
stream = new NetStream(nc);
videoComp.attachNetStream(stream);
stream.play("Terminator")
// stream.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
stream.client = nsClient//new CustomClient();
nsClient.onMetaData = metadataHandler;
trace("stream ===>>> "+stream.currentFPS);
//responder = new Responder(onResult);
// nc.call("getStreamLength", responder, "bikes" );
private function metadataHandler(metadataObj:Object):void
meta = metadataObj;
videoComp.width = metadataObj.width;
videoComp.height = metadataObj.height;
//positionBar.move(videoComp.x, ((videoComp.y + videoComp.height)+20));
//positionBar.width = videoComp.width;
trace("Duration ====>>>> "+meta.duration);
private function timerHandler(event:TimerEvent):void
//trace("Timer called.........."+stream.time);
//positionBar.setProgress(stream.time, meta.duration);
]]>
</fx:Script>
</s:Application>I have the same question but I am using two pc's
-
hi all,
here java people have given wsdl file to me, how to do the scenario,
and how to get the wsdl file from the java people.
regards,
priyaHello Priya,
Go to http://<hostname>:50000/wsnavigator or any other UDDI server and search for the web service to be invoked
There you can find the Webservice Definition (WSDL) file.
Check this weblog:
Invoke Webservices using SAPXI
regards
Gangaprasad -
How to use a key file in the FTP Task using and SSL connection
In the past I have used this code to set the FTP pass word in an FTP component task in SSIS.
Does anyone know how to use a Key file in an SSL connection to download a file from an FTP site? If not can you tell me where I can get the C# code examples to learn how to create a script task or if there is another way in SSIS to download large files
from an SSL FTP site? Thank you for any help offered.
public void Main()
ConnectionManager FTPConn;
FTPConn = Dts.Connections["FTPServer"];
FTPConn.Properties["ServerPassword"].SetValue(FTPConn, Dts.Variables["FTPPassword"].Value);
Dts.TaskResult = (int)ScriptResults.Success;
AntonioYou can use SFTP for this.
This is a way of implementing SFTP in SSIS using standard tasks
http://visakhm.blogspot.in/2012/12/implementing-dynamic-secure-ftp-process.html
also see
http://blog.goanywheremft.com/2011/10/20/sftp-ftps-secure-ftp-transfers/
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to use my as3 file in flex
hi, I am new in flex and want to divert into flex. How to use my as3 file into flex. Is there any sample tutor . so, that I could learn fast.
Please clarify. Is this .as file a class you previously used as a complonentcomponent you now wish to use as the main application?
If the .as file just has variables and functions you wish to access from your Flex app, use:
include "subfolder1/subfolder2/etc/MyASFile.as";
If you want to use classes from the file, do this:
import subfolder1.subfolder2.etc.MyClassName;
If this post answers your question or helps, please mark it as such.
Greg Lafrance - Flex 2 and 3 ACE certified
www.ChikaraDev.com
Flex / AIR Development, Training, and Support Services -
Using generated wsdl file to other scenario
Hi...
I have done one scenario like giving
Input File: Fname,Lname,Address
Output file: FullName,address.
using BPM.
After doing the sceanrio i have generated the wsdl file. I have tested the wsdl file using infopath.It is working fine.
Then i have done anothe scenario like File_webservice_File sceanrio. In this scenario, i have used the wsdl file which i have generated before using BPM. while executng the scenario, output is not coming. i have used 2 receiver communication channels for soap and for file.For soap, i have given the target url and soap action of the wsdl file which i have generated.In moni i can see the 3 messages. for one message it is showing checked flag, but for other 2 messages, it is not showing any flag. Can you please tell, where i have done wrong.Hi Leelaratnam,
try to refresh the queue ie SMQ1 and SMQ2 and even referesh the cache
chk for this links
RFC -> XI -> WebService - A Complete Walkthrough (Part 1)
RFC -> XI -> WebService - A Complete Walkthrough (Part 2)
Aspirant to learn SAP XI...You won the Jackpot if you read this!-Part III
Thanx
Sampath -
To test BPEL project using a wsdl file.
Hello Experts,
I need to test the BPEL Project using the wsdl file.Is there any tool to test the BPEL project?the tool should generate the input data and expected output result using the wsdl file.
please reply soon
Thanks in Advance.The entire application means the BPEL Project will be invoking many services.Consider a scenario,that i am creating a bpel project which invokes 10 services.If i make some changes in one service,i must be able to check the bpel project with that service alone.i need not cal all the other services.
I need a framework or tool thet will generate input data and the expected output based on the wsdl file.
can u suggest any solution for this? -
Can I include 2 diff strctures in d same wsdl file in a webservice scenario
Hii all,
We are using webservice to webservice scenario in which sender shld b able to send all the new rquest to the target and receive any updations or modifications from the receiver.
Few fields are different for request and modification structures. so i created 2 diff structures for source and target.
can any one suggest me who can i use single wsdl file for both the msgs( Creation and modifications) mean how to implement multi maping ( 1 to many) using wsdl
Regards
AnuA simple way to include the 2 structures in one WSDL would be to create a combined structure similar to the one below:
<RequestPackage> (1 occurrence)
<Request> (0 to n occurrence)
<Create> (0 to 1 occurrence)
... Create Fields u2026
</Create>
<Modify> (0 to 1 occurrence)
u2026 Modify Fields u2026
</Modify>
</Request>
</RequestPackage>
This is more complex than using 2 wsdls but it would allow you to easily send multiple create and modify records in the same message.
- Craig -
HT4623 How to use epson iprint after connected with iPad help
How to use epson iprint after connected with iPad help.
When you open Epson iPrint, you will see the various options of ways to proceed, e.g., Photos (to print photos), Maintenance (for printer maintenance). Scan (to perform scanning).
-
How to open a wsdl file in Weblogic Workshop 10.3? Cannot seem to do so!
Hello, I'm new to Weblogic Workshop 10.3 & will be working with learning how to develop and use webservices using the application. I have a WSDL file which i want to use in a project but cannot seem to import or use the file as required.
If I click on "File -> New -> Service Control ->" I get the option to "Select the WSDL file to use" however I cannot find any WSDL files I copy into my workbench folder. Even if I close the project, close workshop, re-open workshop, reopen a project the WSDL file are not available to choose.
Does anyone know what I may be doing wrong or how to resolve this issue?
Any help would be appreciated!
Thanks.The Adobe PDF printer is no longer available in Snow Leopard. This is an announce to this fact at the entrance to the Acrobat Macintosh forum. The old methods for doing what you want will not work in Snow Leopard. I recommend you look at Quite Imposing. It can do everything you want and more. Alas, it comes at a price.
-
Error while creating Adaptive WS model(SP17) using local WSDL file
Hi,
I am trying to create a model with the wizard for adaptive Web Services, without using logical destinations. I have download the file from PI Server. This WSDL file is not registered in UDDI. But when I try to upload my WSDL from local disc I get an error message, which defines in the .log file like this:
Plugin name: Web Dynpro Model Editor
Plugin ID : com.sap.ide.webdynpro.modeleditor
Class : om.sap.ide.webdynpro.modeleditor.wizards.model.creation.PageRenameW
Method : loadNameSpacesAndModelClasses
Message : Cannot load NameSpaces and ModelClasses
Exception : java.lang.NullPointerException: null
Earlier when i was using "WebService model", i was able to create the model successfully.
Do help me how to reslove this problem.
Regards,
RajDid u use "webservice model" or "adaptive webservice model".
Earlier i used with "wenservice model" and it was working fine. Now that with SP17, "WebService model"is depricated and we are forced to use "adaptive webservice model" and it is giving the problem. the detailed error is :
Exception : java.lang.NullPointerException: null
<i>!STACK 0
java.lang.NullPointerException
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters_DocumentStyle(DOperationImpl.java:59)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.initParameters(DOperationImpl.java:46)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DOperationImpl.<init>(DOperationImpl.java:40)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.initOperationNameToOperationMapping(DInterfaceImpl.java:150)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DInterfaceImpl.<init>(DInterfaceImpl.java:55)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.initPortNameToInterfaceMapping(DGenericServiceImpl.java:78)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:50)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)</i>
Maybe you are looking for
-
My firefox is auto resetting to default how can I stop this?
my firefox is auto resetting to its default setting everyday what is causing this and how can I stop it? I ran virus, malware, adware scanners and found nothing wrong there every time I find this I have to reset all my security and privacy option as
-
No longer able to connect to Yamaha RX-V675 amp from Apple devices
Sorry for the length of this post, but I wanted to get everything down in one hit and I REALLY need some help as it's driving me nuts! I have been happily connecting to my Yamaha RX-V675 amp from my Macbook Pro (2010) with no problems since I bought
-
Problem when exporting the report to PDF viwer a 45,000-page report
I am using Visual Studio 2013 with the report vivew. I have a report that works correctly, however when generating a 45000 pages he is giving memory error when exporting to PDF, any tips?
-
How to create new requisitioner in sap mm for raising purchase requisition?
How to create new requisitioner in sap mm for raising purchase requisition?
-
Get acrobat reader mac to speak Transcript in Swedish with speech
Once we have created an accessibility adapted pdf using acrobat pro 11 and then must check it in acrobat reader 11 speech so you can not get it to speak Swedish. I have installed Transcript in Swedish voice alva in mac 10.8 but it can take to choose