How to intigrate the web services?
Hi Experts.
I created internt services in SE80 and activated using SICF,I'm able to test individaul service working fine, I wanted to call one service from others and estblish a flow,
How we can do this ?
Thanks
Naveen
I don't think it is possible in the Internet service. But you can do this in the ABAP module pool programs.
/padmanaban
Similar Messages
-
How to access the Web Service Browser
Hi,
I need to access the Web Service Browser to generate a Web Service Description.
How can I do it?
I use the follow url:
http://<host_name>:<port_number>/sap/bc/bsp/sap/WebServiceBrowser/search.html?sap-client=<relevant_client>
but I can't say how to determine values for the three placeholders.
Help me please.
THANKSHi Andrea,
you can access the web services in sap transaction SICF. Then right click on the
service and choose "test". The hostname is the host on where the sap system
runs.
The port ´number can be seen in transaction SMICM -> shift + F1. Here you can see
the portnumer assigned to the HTTP protocol.
And the client is the sap client (standard client) for which the service is configured.
Hope this helps.
KR,
Andreas -
How to Authenticate the Web Service from my Java Client?
Hi All,
I am a newbie. I am working in Microsoft Technology. But due to a critical requirement, I am suppose to write a Java Web Service Client application. I some how managed to create the Client Application. The application works fine if the Authentication is turned off in the web service level itself. I am unable to or unaware of authentication in Java World. I have written a .NET Client application where I am able to set the Credentials but in Java world no property or method allows me to set it.
Anybody knows how to solve this problem?
My configuration is,
JDK - JDK 1.5.0.16
IDE - Netbeans 6.1
Web Server - Tomcat 6.0
SOAP - Native C++ SOAP
How do I did?
- Created a Java Web Service Client Application.
- Added the Web Reference to the SOAP WSDL url.
- Initialized the class object using the WSDL generated SOAP classes (Reference classes)
My code look like,
String result = "";
try {
QName name = new QName("http://eaglesuite20/eaglesoap.wsdl", "eaglesoap");
eaglesuite20.eaglesoap.Eaglesoap service = new eaglesuite20.eaglesoap.Eaglesoap(new URL("http://phobos:1011/?wsdl"), name);
eaglesuite20.eaglesoap.EaglesoapPortType port = service.getEaglesoap();
// TODO initialize WS operation arguments here
eagle.Request submitRequest = new eagle.Request();
submitRequest.setRequestType(eagle.RequestType.E_B_SCHEDULE_DEF);
submitRequest.setOperation(eagle.Operation.READ);
eagle.FilterDefinition filter = new eagle.FilterDefinition();
filter.setField(new JAXBElement<String>(new QName("urn:eagle", "Field"), String.class, "SHOW_SCHEDULED"));
filter.setValue(new JAXBElement<String>(new QName("urn:eagle", "Value"), String.class, "SHOW_SCHEDULED"));
filter.setOperator(eagle.EOperators.EQUAL);
eagle.FilterDefinitions filDefs = new eagle.FilterDefinitions();
filDefs.getFilterDefinition().add(filter);
submitRequest.setFilterDefinitions(new JAXBElement<eagle.FilterDefinitions>(new QName("urn:eagle", "FilterDefinitions"), eagle.FilterDefinitions.class, filDefs));
// TODO process result here
result = port.submitData(submitRequest);
//out.println("Result = " + result);
} catch (Exception ex) {
// TODO handle custom exceptions here
out.println(ex.getMessage());
}Thanks in Advance.Hi
Did you get your problem solved? Can you please help as I am getting null pointer exception when I invoke a call to web service which is secured/
Please help!!!!!!!!! this is urgent. -
How to change the web service address of NetBeans generated WS client
I am currently experimenting with web services using netbeans and Sun Application Server.
Basically I am creating simple web services using net beans and then deploy them on the app server and then create another pfoject with web service reference to that web service to invoke the service.
My problem is when a project is deliverd to the production site the the client applications web service reference will need to be configured to refer to the production web service address. But when I looked at the generated web service client code the address is hard coded.
How can I change the address to the web service of a web service reference created in net beans either using some configuration file (without having to recompile the client) or at runtime.
Thanks in advancebump...
-
How to load the Web Services Data
Hi,
I tried creating a sample webservice, and here is the code in
the flex part. kindly help me asap, i need to know this for an
interview tomorrow.
Also, anyone can send me links for creating Webservices in
.NET and connecting to Flex.Hi,
The following tutorial explains in detail about creation of web service and using it as ADF Table
http://www.oracle.com/technology/products/jdev/howtos/1013/wsadf/adfcomplexwstypes.html
Sireesha -
Hi everyone,
I followed the instructions of the following link to create a web service using jDeveloper 10.1.3.1.0 on Oracle Application Server 10.1.2.0.2. [http://st-curriculum.oracle.com/obe/jdev/obe1013jdev/10131/devdepandmanagingws/devdepandmanagingws.htm#t1]
The web service created was deployed & used with no errors on the standalone OC4J instance.
But my goal is to deploy my web service on Oracle Application Server 10.1.2.0.2.
So after several attempts, I was able to deploy it on the Oracle Application Server 10.1.2.0.2 but unfortunately I didn't know the URL needed to use the web service.
I tried the following link (http://192.168.0.91:18100/JavaWebService-GetDates-context-root/GetDatesWSSoapHttpPort) but also didn't work :(
I also tried converting to J2EE 1.3 and still not knowing how to access the web service.
Please advice with a solution.
Thanks in advance.
LanaThanks everyone for your help :)
The problem turned out to be that Oracle application server 10.1.2 is unlike the others servers, it uses 2 ports:
- port (19100) is dedicated for the console.
- port (7779) is to view your applications.
So the URL needed turned out to be "http://acteos-109.beirut.acteos:7779/beanTest" instead of "http://acteos-109.beirut.acteos:18100/beanTest"
Hope this info is useful
Lana -
Want to find out how much data a Web Service is sending to client (JWSDP)
Well, the subject line didn't fit what I was intended to say, so if you don't get what I am saying in the subject line, I am sorry.
My question is... I have a Web Service client that uses stub classes generated by wscompile in JWSDP. I am wondering, it there a way to find out how much data the Web Service is sending back to my client.
The reason I asked is this, I used WebLogic 7.0 workshop to create a Web Service and also used JWSDP to create the same Web Service which deploys to Tomcat. The generated WSDL files from WebLogic workshop and JWSDP that expose the same functionalities have differences. The WSDL from WebLogic workshop is 1.5 times the size of the WSDL from JWSDP. When I tested both with client programs, calling the Web Service in Tomcat (which uses JWSDP to built) is much quicker than calling the Web Service in WebLogic.
For this reason, I would liked find out if the Web Service from WebLogic is sending more data than the one created with JWSDP.
Thanks.I've used the TcpTunnelGui utility to see the HTTP flowing up and down the wire, that might help you.
-
How to time a web service at back-end?
I implemented a web service using Axis. This service is to receive an upload file and process it. Since it is a long process, I want to know and log how much time was used for each service call at the server side.
The web service code is like:
public class CTSService implements ICTSService, ServiceLifecycle {
public String processUpload(byte[] zippedData, int zipSourceLength) {
In the service method processUpload(), it receives byte array zippedData, which can be hundred of MBs. I want to log the time processUpload() receives and processes zippedData. The problem is that, when processUpload() is invoked at the back-end, the server has already received the zippedData, so we can't correctly compute the time of upload of zippedData.
Does anyone have a good idea of how to time the web service call processUpload() at server side?
Thanks!You can include below method in your code and call it.
private void UpdateConfig(string key, string value, string fileName)
var cFile = ConfigurationManager.OpenExeConfiguration(fileName);
cFile.AppSettings.Settings[key].Value = value;
cFile.Save();
Here fileName is the full path + application name (eg: c:\project\WinApp.exe)
Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer :) -
Implement the web-service API on an external service desk
Hi,
I want to implement the web-service API on an external service desk
system.
I am working with the IMG and got to the point where I define a logical
port. At this point I need the web-service to be implemented on the
external system.
I have web-service API documentation and also read note 962383 - but I
did not find any specific instructions how to implement the web-service.
Can you assist me with documentation for the web-service implementation
on external system procedure?
or if someone can share a step-by-step - it would be great.
Thanks,
ShellyHello Shelly,
Please use the following link to Read a blog Service Desk Implementation Guide Part II
Service Desk Implementation Guide Part II
This blog describes the following.
1) Integrate New data in the Service Transaction
2) Implement new action: send mail to creator on message modification.
3) Configure an interface to an external service Desk
4)Implement a new action that send the message to the external system and change automatically the status.
Hope it helps.
Cheers,
Satish. -
How to get the WSDL services up and running
Hi,
I have created a real-time process. I am going to 'Web Services Tester' and getting my project. I am able to see the screen. When I enter data and click on 'Send' I get the message 'The services are not up and running.'
According to the Student activity guide I need to do the following:
"If the Web services Tester does not appear on the Launch Pad, click 'Server Configuration' , input your Username and pwd, and then click 'Applications. Select the checkbox to the left of the Web Services Tester. Click Save and then click Home."
I do not see the icon 'Server Configuration' on my launch Pad. Let me know how it can be enabled so that it appears on the Launchpad.
Let me know how to get the web services running.
Thanks
PrabhaOnce you have a process which reads from and writes to the web service, just run the process, either directly or in a job.
Richard -
How to integrate deployed Web Services and Portlets
Hi All,
I am able to deploy Web Services and Portlets in the Application Server, which is in the network system.Now, I want to know how to integrate the Web Services and Portlets.I dont have any idea about this and i didn't got any good material..
Please, provide some useful links or material, if anybody has any idea about this.
Thanks in advance.
PraphulYou can consume a Web service from a JSF page for example using the ADF Web service data control:
http://www.oracle.com/technology/obe/obe11jdev/bulldog/webservices/ws.html
http://www.oracle.com/technology/obe/obe11jdev/11/wsdc/wsdc.htm
You can turn these JSF pages into portlets using WebCenter's JSF to Portlet bridge.
http://www.oracle.com/technology/products/jdev/11/cuecards111/jps_set_62/ccset62_ALL.html -
How can I invoke the web service manually in websphere?
Hi
I've developed a webservice application using Rational Application Developer (RAD). I deployed it in a websphere 6.1 application server, using the administration console to import the war file that I had previously exported with RAD.
My webservice application is listed in the "Enterprise Applications" section of websphere's administration console as started.
My question is: how can I invoke the web service manually? Is there some kind of websphere generated webpage that I can use to call it manually?
I tried http://<server:port>/<contextroot> and http://<server:port>/<contextroot>/<servicename> in a webbrowser, but it doesn't work. Is it possible to invoke the web service manually, or do I need to develop a client?
Thanks in advance
PedroHi Bo Wang,
Go to the Portal -> System Administration -> System Configuration
-> Portal Content folder
-> Open Visual Composer folder
There you can see the Webservice Systems you have created through VC.
You can delete the unwanted system here.
Regards,
Shemim -
How to pass .txt file as an attachment to the web service (SOAP Attachment)
Hi,
I am creating web service using NetBeans 6.5 IDE and JAX-WS. I create a web application and then create web service using provided interface. I want to add .txt file as an attachment/parameter to the web service operation using "Add operation" interface. Don't want to add as an attachment to the SOAP message by creating it explicitly. IDE generates SOAP request and response automatically when the service is tested using "Test Web service" option. How can I add attcahment when I add operation so that it will appear in the generated SOAP message ?
TIA.Hi AnitaDP,
Attachment doesn't work in web service. You have to pass the content of the text file as a String or as an array of bytes to a method of your web service. From there, you may save the passed data in a file. -
How to send the SOAP Fault Message to the Web Service Consumer
Hi,
I have configured SAOP to Proxy Syncronous Scenario in PI 7.1 and using XML Validation in Adapter Engine to Validate the Structure of the Message Payload.The scenario is working fine.When some of the Filed's Length increses the maxLength specified in the Data Type . We are getting the Following error.
<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Body>
<SOAP:Fault>
<faultcode>SOAP:Server</faultcode>
<faultstring>Server Error</faultstring>
<detail>
<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
<context>XIAdapter</context>
<code>ADAPTER.JAVA_EXCEPTION</code>
<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: XML Validation for payload with root element name MT_Out_CustomerMaster_FPMReq , target namespace http://Pegasystems.com/I06_Customers Failed!Errors Encountered During Parsing
1.cvc-maxLength-valid: Value '123456789' with length = '9' is not facet-valid with respect to maxLength '8' for type 'null'.
2.cvc-type.3.1.3: The value '123456789' of element 'CompanyCode' is not valid.
3.cvc-maxLength-valid: Value 'asdf' with length = '4' is not facet-valid with respect to maxLength '1' for type 'null'.
4.cvc-type.3.1.3: The value 'asdf' of element 'OperationType' is not valid.
at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1164)
My question is How does the Web Service Consumer can handle this Soap Server Error in the SOAP Fault.Or How can we provide a specific information like 'The value '123456789' of element 'CompanyCode' is not valid.It exceeds the Maximum Length'.
I read this /people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client blog .Where it is mentioned that the Web Service Consumer can handle while calling the Web Service.Is there any other solution?
Kindly appreciate your help.Thank You Stefan for your kind reply.
So you mean to say if we use the XML Validation .we cannot provide proper error information to the calling Web Service Consumer .And While calling a Web Service they cannot Extract the Exact Message in the Text Filed(<text>) present under the Detail Element (<detail>) in the <SOAP:Fault> node. as
<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessageFormatException: XML Validation for payload with root element name MT_Out_CustomerMaster_FPMReq , target namespace http://Pegasystems.com/I06_Customers Failed!Errors Encountered During Parsing
1.cvc-maxLength-valid: Value '123456789' with length = '9' is not facet-valid with respect to maxLength '8' for type 'null'.
2.cvc-type.3.1.3: The value '123456789' of element 'CompanyCode' is not valid.**
3.cvc-maxLength-valid: Value 'asdf' with length = '4' is not facet-valid with respect to maxLength '1' for type 'null'.
4.cvc-type.3.1.3: The value 'asdf' of element 'OperationType' is not valid.
That is why we have to use the Fault messages and Field Lengths has to be Validated in the Server proxy.
Please Correct me If I am wrong. -
How to write a Web service Handler without modifying the Web service code
Hi,
How can I write a SOAPHandler without modifying the Web service code. I want to add a generic handler which will take care of SOAPHeader for all the webmethods. To add a handler is it necessary to modify the web service code?You will find answer in [implementing_handlers_using_jaxws_2|http://blogs.sun.com/sdimilla/entry/implementing_handlers_using_jaxws_2]
Maybe you are looking for
-
TS3274 My iPad won't charge. Tried more than one charger.
My IPad won't charge. I tried more then more charger...help. Plus the sound is missing for general purposes...lock sound, etc. already tried to turn on an off.
-
ACROBAT X FAILURE TO LAUNCH DUE TO CREATIVE CLOUD TRIAL EXPIRATION
I do not want to buy a Creative Cloud license. My trial has expired, and now my licensed and registered copy of Acrobat X will not launch. I want to do two things: Launch the Acrobat X software I have paid for Make the Creative Cloud expiration not
-
Arch 0.7.1 FTP install only CD ISO
Hi there i was sick of downloading the whole base cd when i was going to use FTP install anyway. So i decided to modify the cd and made a FTP install only cd. i dont know if someone did it before .. whatever its nothing big just a really tiny modific
-
Safari opens, but there is no window
This just started happening all of a sudden. overnight actually, i went to sleep w/ safari still open and when i came back the window was gone. I tried restarting the computer, shutting down completely, and repair permissions, but no luck. I can clic
-
How do I reinstall itunes after reformatting windows 8?
how do I reinstall itunes after reformatting windows 8?