Calling a java web service from R/3 6.0
hi experts,
can anyone please tell me how to call a java web service from R/3 6.0?
i found some answers to this question but all those were for 6.4 or 6.2 but not for 6.0.
i want to generate a outbound flow from ERP system. so please tell me something about web service in that context.
Thanks in advance,
Sagar.
Hi!!!
I would do this scenario as a synchronous one:
[SAP R/3][ABAP proxy objects] <-> [XI]<->[SOAP Adapter]<--->[external java app]
In your ABAP transaction you will have to execute ABAP proxy method to send a message to XI. If it's not your transaction, you can use user-exit.
BTW, I have an experience with XI 2.0, not with 3.0, so I used a XI 2.0 terminology.
Regards,
Andrzej Filusz
Similar Messages
-
Calling normal java web service from bpel
hi,
i want to call a normal java web service (which has been deployed in an application server) and not a bpel process from my .bpel file.
i see that while creating a partner link , i have to specify the wsdl file location.
there are two options.
from local bpel server and
from local file system.
since the web service is not a bpel prcess, it can not be deployed in the bpel process manager and i have to choose the wsdl file location from local file system.
now there are some major differences in the two type of wsdl file, i.e., that of a java web service and a bpel process.
let me give u all a concrete example.
let i have a hello world web service which takes a name as input , concatenates the name with "hello" and outputs.
i created a partner link to this web service.
after creating the partner link, a local copy of the wsdl file is added into my bpel project which only contains definition import and partnerlink statements.
but i can not progress any further.
can any one help me out of this problem.
also i will be helpful if any one can suggest a tutorial where bpel is used to orchestarate between normal java web services deployed in some other application server and not mere bpel processes.
thanks & regards.
sudiptoHi Sudipto,
Just to add to the options. There are three options.
1 and 2 as mentioned by you.
3 you can give the hosted wsdl location directly in the text box. (i.e. somthing like http://ws.strikeiron.com/CensusData?WSDL)
This in turn will create a local wsdl which has partnerLink info and an import of the original wsdl.
once you have this select the appropreate Partner Link Type and Partner Role.
HTH
Dhaval -
Call webdynpro java Web Service from ABAP
Hello,
This is regarding calling portal web service from ABAP.
1. created web service in NWDS and deployed it to portal server
2. created abap proxy to call this web service from abap SE80 transaction
3. created logical portal for the above proxy LPCONFIG transaction
this is working perfectly. the web service is getting called from abap and funcitonality is working
but my doubt is we have no where given the login password for portal server in the abap system
then how come it works without login password
if i run this web service directly from portal in wsnavigator, then portal login is required.
If we want to incorporate authentication then how to do that ?
thankyou,
BWhen you are testing the application in SE80.
Is it ot asking for the user id password.
I created a similar service and for me its asking for user id and password.
Go to SM59 and there look for a RFC destination of type HTTP Connection to External Serv. usually will be named as
SAP_PROXY_ESR.
for this connection check the logon and security tab.
may be some user id and password is given there. means hardcoded.
thanks
sarbjeet singh -
How to call a Java Web Service from another Java package ?
Please, does anybody know a simple way to access to a JWSDP Web Service deployed under Tomcat with another java application ?
I've tried with ServiceFactory and Service class from JaxRPC API but it doesn't work ....
Thanx.What not just invoke it the same you would invoke a remote service? Create a service stub and call a service method.
Mike -
Call to Java web service from abap program
HI,
I want to call to Java WS from abap program and i read some post how to do that in release of NW 6.4 but I want to know what is the simplest way to do that in release 7.0 .
Many Thanks,
NinaHi Uwe,
Thank you.
I have WSDL or URL how i can call to them ,in the example that you send i don't find the place that it called.
Do i have to create proxy for that ?
BR
Nina -
Calling a soap web service from a java desktop application
Hi,
Does anyone know how to call a soap web service from a java desktop application? I've seen examples using Apache Axis, but it sounds like Axis needs to run on a web server and we are trying to avoid that. My initial thought was that, "of course we need a web server", but I'm wondering if there is a way to do this without a web server.
Any help is greatly appreciated.
thank you,
JulieIf you are the consumer you don't need any web server. The web server is only needed in the provider end.
In java 6 there is a built in framework to call web services without the need of third parties (such as apache axis)
take a look at:
https://jax-ws.dev.java.net/guide/Developing_client_application_with_locally_packaged_WSDL.html
http://java.sun.com/webservices/technologies/index.jsp
For the provider end there is also a built in http server to expose web service via HTTP without the need to
use any external web server.
take a look at:
http://java.sun.com/javase/6/docs/api/javax/xml/ws/Endpoint.html -
How to call an external web service from OIM?
Hi,
I have a question on how to call an external web service from OIM within e.g. creating user process? How should it be done; through adapter and task in the process?
Any recomendations?
Thanks in advance!it is not clear to me if you are having problems with calling java code from OIM or if the problem is the web service API.
Lets do some divide and conquer:
Can you create a simple java class that just writes a couple of lines to the log? Please attach this code to the OIM task and make sure it runs.
Once this works we can start looking at the web service call.
Best regards
/Martin -
Calling a WebLogic web service from a WebLogic web application
We would like to call a WebLogic web service from WebLogic web application. The current architecture looks like:
LoadBalancer--->iPlanet-1/iPlanet-2--->Firewall--->WebLogic-AppServer-1/WebLogic-AppServer-2
The web application and web service are in the same WebLogic cluster. We would prefer that the web services do not get published externally.
Does the WebLogic web application need to make a call back outside the firewall to the load balancer?
Is there a way the web services can be called locally with load balancing?
Can web service calls be made over the t3 protocol?
Thanks,
MikeI think one solution is to use a Java proxy to call the Web services.
In the Java proxy you can have a method that accepts the user/pass and sets them correctly for the Web service.
Then you expose that Java proxy as a data control (right click, create data control) - and then create a page that invokes that method.
(For the basics of working with a POJO data control see: http://blogs.oracle.com/shay/2009/07/java_class_data_control_and_ad.html ) -
Calling Sales Force Web-services from FMW
Hi,
Can anyone help me in calling Sales Force web-services from Fusion Middleware.
I've created a web-services in Sales Force & now I want to call it from FMW. The issue is we can't directly call SF web-services. We have to first authenticate ourself on SF site with user name & password along with Security token, get the session Id & then we have to call the web-service by setting the session Id in header.
If anyone has the PDF "salesforce-integration-fusion-middleware-twp.pdf " or any documentation on Sales Force integration with Oracle Fusion.
Please help. Thanks in adavance.
Edited by: Shailendra Suryawanshi on Oct 4, 2010 9:22 PMHi,
Thanks a lot for the reply & I absolutely think that's the way it should be. I've written a Java code with SF APIs to first login, get the session Id & then call the actual web-service with session Id set in header.
But the issue I'm facing from Fusion is I don't know the web-service for authentication with valid credentials to get the session Id.
I need the details of web-service which I should call first with my valid credentials to get the session Id so that I can pass the session Id as header parameter for calling the actual web-service.
Looking forward to your reply desperately.
Thanks & Regards,
Shailendra Suryawanshi -
How to call a SAPME web service from MII
Dears,
How can I call a SAPME web service from MII such as PlaceFutureHold?
By using MII, I would like to develop some logic to check some values which query from SAPME database, if the value is out of spec, it needs to send a emal to inform user ans also hold the SFC.
Thanks!Hi,
I can config the SAPME web service ItemServiceService
I used Config Links to assign values in request ItemByBasicDataQuery_sync, such as material, revision, site.
But get a almost empty response ItemByBasicDataResponse_sync, I wrote both web service request and response in file as below.
What did I missed? Thanks!
request:
<?xml version="1.0" encoding="UTF-8" ?>
- <ItemByBasicDataQuery_sync xmlns="http://sap.com/xi/ME">
- <ItemByBasicDataQuery>
<Item>MA1</Item>
<Revision>A</Revision>
- <SiteRef>
<Site>HP</Site>
</SiteRef>
</ItemByBasicDataQuery>
</ItemByBasicDataQuery_sync>
response:
<?xml version="1.0" encoding="UTF-8" ?>
- <ItemByBasicDataResponse_sync xmlns="http://sap.com/xi/ME">
- <Item>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
<ItemType>K</ItemType>
<IncrementBatchNumber>S</IncrementBatchNumber>
<LotSize>0.00</LotSize>
- <StatusRef>
<Status languageCode="" />
- <SiteRef>
<Site />
</SiteRef>
</StatusRef>
<EffectivityControl>R</EffectivityControl>
<Description languageCode="" />
<UnitOfMeasure languageCode="" />
<AssignSerialAtRelease>false</AssignSerialAtRelease>
- <AssyDataTypeRef>
<AssyDataType languageCode="" />
- <SiteRef>
<Site />
</SiteRef>
</AssyDataTypeRef>
- <InventoryAssyDataTypeRef>
<AssyDataType languageCode="" />
- <SiteRef>
<Site />
</SiteRef>
</InventoryAssyDataTypeRef>
- <RemovalAssyDataTypeRef>
<AssyDataType languageCode="" />
- <SiteRef>
<Site />
</SiteRef>
</RemovalAssyDataTypeRef>
<CreateTrackableSFC>I</CreateTrackableSFC>
- <BomRef>
<Bom />
<Revision />
<BomType>S</BomType>
- <SiteRef>
<Site />
</SiteRef>
</BomRef>
- <RouterRef>
- <SiteRef>
<Site />
</SiteRef>
<Router />
<Revision />
<RouterType>D</RouterType>
</RouterRef>
<CurrentRevision>true</CurrentRevision>
<DrawingName languageCode="" />
<EffectiveEndDate daylightSavingTimeIndicator="true" timeZoneCode="" />
<EffectiveEndSequence unitCode="">0.00</EffectiveEndSequence>
<EffectiveStartDate daylightSavingTimeIndicator="true" timeZoneCode="" />
<EffectiveStartSequence unitCode="">0.00</EffectiveStartSequence>
- <ItemGroupRef>
- <SiteRef>
<Site />
</SiteRef>
<ItemGroup languageCode="" />
</ItemGroupRef>
- <MaskGroupRef>
- <SiteRef>
<Site />
</SiteRef>
<MaskGroup languageCode="" />
</MaskGroupRef>
<MaximumUsage unitCode="">0.00</MaximumUsage>
<Panel>true</Panel>
<PreAssembled>true</PreAssembled>
<QuantityMultiplier>0.00</QuantityMultiplier>
<QuantityRestriction>W</QuantityRestriction>
- <SelectorActivityRef>
<Activity languageCode="" />
</SelectorActivityRef>
<SelectorNote languageCode="" />
- <TransferItemGroupRef>
- <SiteRef>
<Site />
</SiteRef>
<ItemGroup languageCode="" />
</TransferItemGroupRef>
<UseCompFromDrawing>true</UseCompFromDrawing>
<IsCollector>true</IsCollector>
<CollectParentSerial>true</CollectParentSerial>
<RequiresSerialNumberChange>true</RequiresSerialNumberChange>
- <DocumentLinkList>
- <DocumentLink>
- <DocumentRef>
- <SiteRef>
<Site />
</SiteRef>
<Document />
<ModifiedDateTime daylightSavingTimeIndicator="true" timeZoneCode="" />
<Revision />
</DocumentRef>
- <DocumentContext>
- <ItemRef>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
</ItemRef>
- <RouterRef>
- <SiteRef>
<Site />
</SiteRef>
<Router />
<Revision />
<RouterType>D</RouterType>
</RouterRef>
<OperationRef />
- <SiteRef>
<Site />
</SiteRef>
</DocumentContext>
<Sequence unitCode="">0.00</Sequence>
</DocumentLink>
</DocumentLinkList>
- <ItemLocationList>
- <ItemLocation>
<Location languageCode="" />
<Description languageCode="" />
<Sequence unitCode="">0.00</Sequence>
- <ItemRef>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
</ItemRef>
</ItemLocation>
</ItemLocationList>
- <ItemAlternateList>
- <ItemAlternate>
- <AlternateItemRef>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
</AlternateItemRef>
<Sequence unitCode="">0.00</Sequence>
<Substitute>true</Substitute>
- <ItemRef>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
</ItemRef>
- <ItemGroupRef>
- <SiteRef>
<Site />
</SiteRef>
<ItemGroup languageCode="" />
</ItemGroupRef>
<RequiredSubstitute>true</RequiredSubstitute>
<ValidAssembly languageCode="" />
<ValidEnd daylightSavingTimeIndicator="true" timeZoneCode="" />
<ValidRevision />
<ValidStart daylightSavingTimeIndicator="true" timeZoneCode="" />
</ItemAlternate>
</ItemAlternateList>
- <ItemDPMOList>
- <ItemDPMO>
<Opportunities unitCode="">0.00</Opportunities>
- <OperationRef>
- <SiteRef>
<Site />
</SiteRef>
<Operation />
<Revision />
</OperationRef>
<ForAllOperations>true</ForAllOperations>
<ForAllDpmoCategories>true</ForAllDpmoCategories>
- <DpmoCategoryRef>
- <SiteRef>
<Site />
</SiteRef>
<DpmoCategory>TERMINATION</DpmoCategory>
</DpmoCategoryRef>
- <ItemRef>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
</ItemRef>
</ItemDPMO>
</ItemDPMOList>
- <TransferDataList>
- <TransferData>
- <TransferParent>
<ShopOrderRef />
- <ItemGroupRef>
- <SiteRef>
<Site />
</SiteRef>
<ItemGroup languageCode="" />
</ItemGroupRef>
- <ItemRef>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
</ItemRef>
</TransferParent>
<TransferType>N</TransferType>
- <TransferSite>
<Site />
</TransferSite>
- <AlarmTypeConfigRef>
- <SiteRef>
<Site />
</SiteRef>
<AlarmType languageCode="" />
<TypeSpecific>true</TypeSpecific>
</AlarmTypeConfigRef>
<DefaultChoice>true</DefaultChoice>
- <ExportTemplateRef>
<TransferDataType>S</TransferDataType>
- <SiteRef>
<Site />
</SiteRef>
<TemplateName />
</ExportTemplateRef>
<ReceiveRequired>true</ReceiveRequired>
</TransferData>
</TransferDataList>
- <ItemShopOrderTypeList>
- <ItemShopOrderType>
- <ShopOrderTypeRef>
- <SiteRef>
<Site />
</SiteRef>
<OrderType />
</ShopOrderTypeRef>
- <RouterRef>
- <SiteRef>
<Site />
</SiteRef>
<Router />
<Revision />
<RouterType>D</RouterType>
</RouterRef>
- <ItemRef>
<Item />
<Revision />
- <SiteRef>
<Site />
</SiteRef>
</ItemRef>
</ItemShopOrderType>
</ItemShopOrderTypeList>
- <CustomFieldList>
- <CustomField>
<Attribute languageCode="" />
<Value languageCode="" />
<Description languageCode="" />
</CustomField>
</CustomFieldList>
<CreatedDateTime daylightSavingTimeIndicator="true" timeZoneCode="" />
<ModifiedDateTime daylightSavingTimeIndicator="true" timeZoneCode="" />
<HoldId unitCode="">0.00</HoldId>
<LastReleasedDate daylightSavingTimeIndicator="true" timeZoneCode="" />
- <OriginalStatusRef>
<Status languageCode="" />
- <SiteRef>
<Site />
</SiteRef>
</OriginalStatusRef>
</Item>
</ItemByBasicDataResponse_sync> -
How can I call a SAPME web service from MII such as PlaceFutureHold?
Dears,
How can I call a SAPME web service from MII such as PlaceFutureHold?
By using MII, I would like to develop some logic to check some values which query from SAPME database, if the value is out of spec, it needs to send a emal to inform user ans also hold the SFC.
Thanks!With Web service action block you can view all ME available services
in I.E
https://sapme:5000/manufacturing-services/ProductionServiceService?wsdl you could see your FutureHold service
To do that in MII, you need Web Service action block. Have you work with MII transaction before?
(saw your post in MII) -
Hi Experts!
I am having confusion among these 3 services provided in Oracle ADF. When to use and what service needs to be used?
Once we generate Webservice WSDL. With the WSDL we have 3 options in Jdeveloper to invoke this service.
1. Java Web Service From WSDL.
2. Web Service proxy,
3. Web Service Data Control.
Can anyone give us some brief description of these 3 services when do we need to use and which service is to be used for which scenario ?
Please give me your valuable inputs.
Thanks & Regards,
Guravaiah Tata.Hi,
Can you share your WSDL.
You can send it to me at [email protected]
-Vishal -
Calling a restful web service from a script task
Hi. I'm weak in c# but am looking to accomplish this...
I want to call a RESTful web service from an ssis script task. I don't want to create a web service so I'm hoping there is some publicly available one I can practice with before our web team provides me with the service I'll eventually use. Can
the community provide an example? I wish I had more but my knowledge is very limited except for using ssis in more sql centric apps. It would be great if I could exercise both a get and put verb but I understand i'll be lucky if I can even get
a get to work.
Here is an example of a get I found on the web but I don't know if its a viable candidate for me to practice with from my package...
using System;
using System.IO;
using System.Net;
using System.Text;
// Create the web request
HttpWebRequest request = WebRequest.Create("http://developer.yahoo.com/") as HttpWebRequest;
// Get response
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
// Get the response stream
StreamReader reader = new StreamReader(response.GetResponseStream());
// Console application output
Console.WriteLine(reader.ReadToEnd());
and in the same article an example of a put ...
// We use the HttpUtility class from the System.Web namespace
using System.Web;
Uri address = new Uri("http://api.search.yahoo.com/ContentAnalysisService/V1/termExtraction");
// Create the web request
HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;
// Set type to POST
request.Method = "POST";
request.ContentType = "application/x-www-form-urlencoded";
// Create the data we want to send
string appId = "YahooDemo";
string context = "Italian sculptors and painters of the renaissance"
+ "favored the Virgin Mary for inspiration";
string query = "madonna";
StringBuilder data = new StringBuilder();
data.Append("appid=" + HttpUtility.UrlEncode(appId));
data.Append("&context=" + HttpUtility.UrlEncode(context));
data.Append("&query=" + HttpUtility.UrlEncode(query));
// Create a byte array of the data we want to send
byte[] byteData = UTF8Encoding.UTF8.GetBytes(data.ToString());
// Set the content length in the request headers
request.ContentLength = byteData.Length;
// Write data
using (Stream postStream = request.GetRequestStream())
postStream.Write(byteData, 0, byteData.Length);
// Get response
using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
// Get the response stream
StreamReader reader = new StreamReader(response.GetResponseStream());
// Console application output
Console.WriteLine(reader.ReadToEnd());
Hi
db042190,
These kinds of operations are commonly found outside the SSIS section of the forum, you just need to "borrow" the code and wrap into the Script Task. And based on what you see you are on the right tracks.
One thing you need to be aware of: in production such RESTfull call usually lead to a fiasco for the machine residing in some kind of DMZ or Firewall rules prohibiting these methods or you need a proxy account to run the package and you face unbeggable admins
who resist to relaxing security.
My suggestion is to go the easy route: write the app up as a console, standalone app - it will be easier to debug and there will be complete examples of them in abundance on the web.
Arthur
MyBlog
Twitter -
"java Web Service from WSDL" just hands me a SOAPElement, no java mappings
Another beginner question. I've used jdev and built a WSDL starting from a somewhat complex xsd. I've used the wizard "Java Web Service From WSDL" taking defaults. It seems to correctly generate class files for all my xsd types. It produces a fancy looking java-wsdl-mapping.xml But the generated stub service implementation just gets handed a SOAPElement object. Why generate all that mapping stuff and then make me parse the incoming data myself with SOAPElement methods? How am I supposed to make use of the mapping work that the wizard seems to have done for me?
Thanks,
SteveDear Tugdual,
Thanks for your intrest in my issue. I narrowed it down to the following type in my xsd
<complexType name="PersonInfoType">
<sequence >
<element name="FamilyName" type="string"/>
<element name="IndividualName" type="string"/>
<element name="SpouseName" type="string"/>
<element name="BirthDate" type="dateTime"/>
</sequence>
</complexType>
This works fine - the "WebSerice From WSDL" wizard "knows" how to generate a class for PersonInfoType (with geters and seters) as well as useful stub implementation:
public class PersonInfoImpl {
public PersonInfoType processPersonInfo(String entityCode) {
return null;
However, if I make my type multiple occuring (to represnt e.g. rows from a db)
<complexType name="PersonInfoType">
<sequence maxOccurs="unbounded" >
<element name="FamilyName" type="string"/>
<element name="IndividualName" type="string"/>
<element name="SpouseName" type="string"/>
<element name="BirthDate" type="dateTime"/>
</sequence>
</complexType>
Now the Web Service generator runs, but just doesn't generate any PersonInfoType class at all. For a stub implementation it genertes the following:
public class PersonInfoImpl {
public SOAPElement processPersonInfo(String entityCode) {
return null;
Now I'm stuck with the container just expecting from me a Soap Object and I have to build all the pieces myself with no java mappings to my xsd at all. Not very useful.
Is there another xml structure I can use to represent data rows that is better supported by the wizard?
Thanks,
Steve -
Calling an external web service from SharePoint 2010
Hi Friends,
Idea is to call an external web service from SharePoint 2010 list.
Can we do this using visual studio 2010, how.
another pointers, please advise.Hi,
You can create Windows Communication Foundation (WCF) web services that you can consume as external content types from Microsoft Business Connectivity Services (BCS).
For more information, you can refer to:
http://msdn.microsoft.com/en-us/library/office/gg318615(v=office.14).aspx
http://www.c-sharpcorner.com/UploadFile/Roji.Joy/connecting-to-a-web-service-using-business-connectivity-serv/
http://blogs.msmvps.com/windsor/2011/11/04/walkthrough-creating-a-custom-asp-net-asmx-web-service-in-sharepoint-2010/
Best Regards,
Linda Li
Linda Li
TechNet Community Support
Maybe you are looking for
-
Mystery Problem in Code...Please Help...
Ok, here's the situation. I am a photographer, and have been writing code for some time now. I decided to write a java application that would write individual web pages for each jpeg present in two directories, bnw and color, making the job of writin
-
Mac Pro flashing power light (unresponsive)
Hello, Twice this week a Mac Pro Quad 2.66 has become unresponsive after being left unattended. I have revived the computer by resetting the System Management Controller (http://support.apple.com/kb/HT1806). It's obvious this is not normal. Should I
-
Hi I pre ordered an album from iTunes (jessie j alive) the album says that it is purchased and it came out on the 23rd. I have had an email saying that it has been purchased also but the album isn't downloading. Please help??
-
The <head> of my template has four editable regions. One is for the title, one for meta-tags, one for styles, and one for scripts. If one of my web-editors uses the following menu: Insert -> HTML -> Head tags -> Meta The tag is placed in the last edi
-
Catalog pricing challenge (idml, xml, javascript solution?)
Greetings, I have a very large challenge that i desperately need help with. I am working on a 1000+ page catalog with over 30,000 products in it. The pages come to our studio from a master database much like the example image I have inserted below --