Web Services with jaxm, it need a WSDL?
i am using jwsdp-1.1
and weblogic(in this container i have my Bussines logic),
windows 2000.
I only execute ant package and, ant install to use , neither deploy nor WSDL.
I need a wsdl and deployment?
Even i am using SAAJ API which uses a servlet for Receiving the requests from clients
In this case do i need to generate WSDL as the return type of servic method is always void and it always take Request and Response as service method parameters .
What is the need in generating WSDL File
Similar Messages
-
Document/literal web service with WSDL
Hi
I is so hard to get an easily written example of how to do a Document/literal web service in java, to generate a WSDL descripbing it and then deploying it on Apache.
I first belived that I should use JAXM. But I think it is just SOAP and there is no way to generate a WSDL file for the JAXM service, or??
It seems that u can to document/literal style using JAX-RPC, but this is VERY strange since RPC style is the direct opposite of Document style.
well, well
I would be very greatful for information here.
regards
/RassolJWSDP 1.2 includes the WS-I sample application in JWSDP_HOME/wsi-sampleapp. Several components of
this application use document-literal operations. The architecture of the application is described
here http://ws-i.org/SampleApplications/SupplyChainManagement/2003-04/SCMArchitecture1.0-BdAD.pdf
The WSDL for the services is availabe from URLs in the document.
As you say, the trick is generating the WSDL for a new service. You have two options: 1. Modify
existing WSDL yourself. This might be fairly easy, since the only major changes will be in the
schema. Then use a tool to generate Java source code from the WSDL. 2. Use a tool to generate WSDL
from source files.
I prefer option 1 myself, since that gives me total control over the schema. It allows me to
serialize certain parts of the SOAP message as body elements, others as attributes, and others as
header elements. Then I use the Apache Axis tool WSDL2Java with the "-s" option to generate skeleton
service files. One big advantage to this approach is that WSDL2Java generates JavaBean class for the
types in the WSDL schema, so I don't need to build the SOAP message with SAAJ. A service client
generates stubs and calls the service exactly as it would for an rpc/encoded service.
wscompile also generates service files from WSDL if you give the "-gen:server" option, but I've only
used Axis for my services.
Here's a sample WSDL for a document/literal service you can modify as you need. I checked it with
the WS-I testing tools to be sure it conforms to the WS-I Basic Profile 1.0a (available at www.ws-
i.org). Notice that the processPo operation is a request-response type operation, even though it has
a document/literal style. This follows the recommendations in the Basic Profile.
Cheers,
Mike
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://www.ltree.com/wsdl/po" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:impl="http://www.ltree.com/wsdl/po" xmlns:intf="http://www.ltree.com/wsdl/po" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://www.ltree.com/types/po" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:tns1="http://www.ltree.com/types/po"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
targetNamespace="http://www.ltree.com/types/po"
elementFormDefault="qualified">
<xsd:import namespace="http://schemas.xmlsoap.org/soap/envelope/"
location="http://schemas.xmlsoap.org/soap/envelope/"/>
<xsd:complexType name="LineItem">
<xsd:sequence>
<xsd:element name="itemId" type="xsd:string"/>
<xsd:element name="quantity" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PurchaseOrder">
<xsd:sequence>
<xsd:element name="customerName" type="xsd:string"/>
<xsd:element name="lineItem" type="tns1:LineItem"
minOccurs="1" maxOccurs="unbounded" />
</xsd:sequence>
<xsd:attribute name="purchaseOrderId" type="xsd:string" use="required"/>
</xsd:complexType>
<xsd:element name="purchaseOrder" nillable="true" type="tns1:PurchaseOrder"/>
<xsd:complexType name="CallbackEndpoint">
<xsd:attribute name="location" type="xsd:anyURI" use="required"/>
</xsd:complexType>
<xsd:element name="callbackEndpoint" nillable="false" type="tns1:CallbackEndpoint"/>
<xsd:complexType name="PurchaseOrderAck">
<xsd:sequence>
<xsd:element name="poId" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="purchaseOrderAck" nillable="true" type="tns1:PurchaseOrderAck"/>
<xsd:complexType name="InvalidCustomerNameException">
<xsd:sequence>
<xsd:element name="message" nillable="true" type="xsd:string"/>
<xsd:element name="customerName" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="invalidCustomerNameException" nillable="true"
type="tns1:InvalidCustomerNameException"/>
</xsd:schema>
</wsdl:types>
<wsdl:message name="processPoRequest">
<wsdl:part name="callbackEndpoint" element="tns1:callbackEndpoint"/>
<wsdl:part name="purchaseOrder" element="tns1:purchaseOrder"/>
</wsdl:message>
<wsdl:message name="processPoResponse">
<wsdl:part name="purchaseOrderAck" element="tns1:purchaseOrderAck"/>
</wsdl:message>
<wsdl:message name="invalidCustomerNameException">
<wsdl:part name="fault" element="tns1:invalidCustomerNameException"/>
</wsdl:message>
<wsdl:portType name="PurchaseOrderHandler">
<wsdl:operation name="processPo">
<wsdl:input message="impl:processPoRequest" name="processPoRequest"/>
<wsdl:output message="impl:processPoResponse" name="processPoResponse"/>
<wsdl:fault message="impl:invalidCustomerNameException" name="invalidCustomerNameException"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PurchaseOrderHandlerPortSoapBinding" type="impl:PurchaseOrderHandler">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="processPo">
<wsdlsoap:operation soapAction="" style="document"/>
<wsdl:input name="processPoRequest">
<wsdlsoap:header message="impl:processPoRequest" part="callbackEndpoint" use="literal"/>
<wsdlsoap:body parts="purchaseOrder" use="literal"/>
</wsdl:input>
<wsdl:output name="processPoResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
<wsdl:fault name="invalidCustomerNameException">
<wsdlsoap:fault name="invalidCustomerNameException" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="PurchaseOrderHandlerService">
<wsdl:port binding="impl:PurchaseOrderHandlerPortSoapBinding" name="PurchaseOrderHandlerPort">
<wsdlsoap:address location="http://localhost:8080/po/services/PurchaseOrderHandlerService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions> -
Help Needed compile, deploy Web Service with Annotations on Web Logic 9.2
Hi,
I am new web logic and need some help in compiling, creating deployment file i.e. war, ear on Web Logic 9.2. I have the following sample web service with annotations code code but need help in compiling, creating deployment file (war,ear), creating proxy for testing etc. How to compile and create deployment files in WebLogic 9.2. Any help is really appreciated.
package sample_ws;
import java.rmi.RemoteException;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import org.w3c.dom.Document;
@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class EchoService {
public EchoService() {
@WebMethod(action="echo")
@WebResult(targetNamespace="http://exa.org", name="echoResult")
public Document echo(@WebParam(targetNamespace = "http://exa.org",
name = "echoMsg")
Document doc) throws RemoteException{
return doc;
}ThanksI am using Oracle Jdeveloper as an IDE and created a war file and deployed on Oracle App. Server it works fine. Now if I deploy the same war on Web Logic it gives me the following error:
java.lang.IllegalStateException: could not find schema type named {{http}//exa.org}>>echoResult
Errors were encountered while performing this operation. Here is the code I have:
package webservice2 ;
import java.rmi.RemoteException;
import javax.jws.*;
import javax.jws.soap.SOAPBinding;
import org.w3c.dom.Document;
@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT,
use = SOAPBinding.Use.LITERAL,
parameterStyle = SOAPBinding.ParameterStyle.BARE)
public class EchoService {
public EchoService() {
@WebMethod(action="echo")
@WebResult(targetNamespace="http://exa.org", name="echoResult")
public Document echo(@WebParam(targetNamespace = "http://exa.org",
name = "echoMsg")
Document doc) throws RemoteException{
return doc;
}And here is the wsdl file I have:
<definitions
name="EchoServiceService"
targetNamespace="http://webservice2/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://webservice2/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:ns1="http://exa.org"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
>
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://exa.org" elementFormDefault="qualified"
xmlns:tns="http://exa.org" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soap11-enc="http://schemas.xmlsoap.org/soap/encoding/">
<element name="echoMsg" nillable="true">
<complexType>
<sequence>
<any/>
</sequence>
</complexType>
</element>
<element name="echoResult" nillable="true">
<complexType>
<sequence>
<any/>
</sequence>
</complexType>
</element>
</schema>
</types>
<message name="EchoServicePortType_echo">
<part name="echoMsg" element="ns1:echoMsg"/>
</message>
<message name="EchoServicePortType_echoResponse">
<part name="echoResult" element="ns1:echoResult"/>
</message>
<portType name="EchoService">
<operation name="echo">
<input message="tns:EchoServicePortType_echo"/>
<output message="tns:EchoServicePortType_echoResponse"/>
</operation>
</portType>
<binding name="EchoServiceSoapHttp" type="tns:EchoService">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="echo">
<soap:operation soapAction="echo"/>
<input>
<soap:body use="literal" parts="echoMsg"/>
</input>
<output>
<soap:body use="literal" parts="echoResult"/>
</output>
</operation>
</binding>
<service name="EchoServiceService">
<port name="EchoServiceSoapHttpPort" binding="tns:EchoServiceSoapHttp">
<soap:address location="http://localhost:8888/EnableSrc-WebService2-context-root/EchoServiceSoapHttpPort"/>
</port>
</service>
</definitions>Any ideas what might be wrong. -
Need idea : Integration of CRM On Demand web services with Oracle SOA 10g
Hi Al,
Can anyone have any idea on integration of CRM on Demand Web service with Oracle SOA 10g specially BPEL 10g.
If you have any idea please share with us. Or if you know any good link on the same... please let me know.....
Thanks in advance
DebarshiAFAIK there is no such mapping available, however you may want to take a look at this Support Community thread that discusses the migration and even gives some samples.
Jani Rautiainen
Fusion Applications Developer Relations
https://blogs.oracle.com/fadevrel/ -
Calling Reporting Services Web Service with jQuery possible?
Hi,
is it possible to call the Reporting Services Web Service with jQuery? If yes, can someone post me a small example?
Background:
My plan is to create a html with a form which is also uploaded then into the reportserver. I open this html later by clicking a link in a report (with gotoURL open.window). The report opens the html inclusive the overtaken of some additional parameters
(reportname, reportdescription). These parameters I will use in the html-form as defaultvalues for the corresponding input-text-fields. Now the user can make some changes (i.e. the decription). With a click on a button I will send the new description to
the Reporting Services Web Service by using the SetProperties method, closing the html-window and reload the report. Important is that I want to upload the html also into the reportserver itself.
I have already found how to consume a web service via jQuery but with the Reporting Services Web Service I did not get it running in my tests.
I have referenced to the following jQuery.js: http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
Here you can see my tests I made with the results:
$.ajax({
type: 'POST',
url: 'http://<..>/ReportServer/ReportService2010.asmx/ListChildren',
data: {'ItemPath':'/','Recursive':false},
complete: function(xData, status) {
$('p').html($(xData.responseXML).text()); // result
$("#divStatus").text( status ); // status }
I got a NULL response with Status success. But where are the items?
Another test which should response only one value was that:
$.ajax({
type: "POST",
contentType: "text/xml; charset=utf-8",
url: "http://<..>/ReportServer/ReportService2010.asmx/GetItemType",
data: {"Item":"/Development"}, // Development is a Folder in my Reportserver-Root
dataType: "xml",
success: function (msg) {
$("#divResult").html(msg.responseXML);
error: function (data, status, error) {
$("#divResult").html("WebSerivce unreachable<br> <br>" + data.responseXML + "<br> <br>(" + error + ")");
Here I got an [object Error]
And here my last test:
var soapMessage = '<?xml version="1.0" encoding="utf-8"?>\
<soap:Envelope \
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" \
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" \
xmlns:xsd="http://www.w3.org/2001/XMLSchema">\
<soap:Body>\
<GetItemType xmlns="http://www.microsoft.com/sql/ReportingServer">\
<ItemPath>/Development</ItemPath>\
</GetItemType>\
</soap:Body>\
</soap:Envelope>';
$.ajax({
type: "POST",
contentType: "text/xml; charset=utf-8",
url: http://<..>/ReportServer/ReportService2010.asmx?wsdl,
data: soapMessage,
dataType: "xml",
success: processSuccess,
error: processError
function processSuccess(data, status, req) {
if (status == "success")
$("#response").text($(req.responseXML).find("Type").text());
function processError(data, status, req) {
alert(req.responseText + " " + status);
Here I got an "Undefined error"
Can anyone help me?
Thanks
René IllnerHi Rene,
I have one vbscript class to call web services. May be if you need you can use it.
dim ws
set ws = new webservice
ws.url = "http://servername/ReportServer/ReportService2010.asmx"
ws.method = "MethodName"
ws.parameters.Add "Parameter1", "Param1 Desc.."
ws.parameters.Add "Parameter2","[email protected].."
ws.execute
set ws = nothing
'------web service calling class
class WebService
public Url
public Method
public Response
public Parameters
public function execute()
dim xmlhttp
Set xmlhttp = CreateObject("Microsoft.XMLHTTP")
xmlhttp.open "POST", Url & "/" & Method, false
xmlhttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
xmlhttp.send Parameters.toString
response = xmlhttp.responseText
set xmlhttp = nothing
end function
Private Sub Class_Initialize()
Set Parameters = new wsParameters
End Sub
Private Sub Class_Terminate()
Set Parameters = Nothing
End Sub
End class
class wsParameters
public mCol
public function toString()
dim nItem
dim buffer
buffer = ""
for nItem = 1 to Count
buffer = buffer & Item(nItem).toString & "&"
next
if right(buffer,1)="&" then
buffer = left(buffer,len(buffer)-1)
end if
toString = buffer
end function
public sub Clear
set mcol = nothing
Set mCol = CreateObject("Scripting.Dictionary")
end sub
public sub Add(pKey,pValue)
dim newParameter
set newParameter = new wsParameter
newParameter.Key = pKey
newParameter.Value = pValue
mCol.Add mCol.count+1, newParameter
set newParameter = nothing
end sub
public function Item(nKey)
set Item=mCol.Item(nKey)
end function
public function ExistsXKey(pKey)
dim nItem
for nItem = 1 to mcol.count
if mCol.Item(nItem).key = pKey then
ExistsXKeyword = true
exit for
end if
next
end function
public sub Remove(nKey)
mCol.Remove(nKey)
end sub
public function Count()
Count=mCol.count
end function
Private Sub Class_Initialize()
Set mCol = CreateObject("Scripting.Dictionary")
End Sub
Private Sub Class_Terminate()
Set mCol = Nothing
End Sub
end class
class wsParameter
public Key
public Value
public function toString()
toString = Key & "=" & Value
end function
end class
Regards, RSingh -
Hi All,
I am new to Web services with JAXB in ECLIPS.
When I tried to unmarshal the XML file, I am getting the following exception.
javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"order"). Expected elements are <{http://webservices/}read>,<{http://webservices/}readResponse>
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.handleEvent
xml , schema and java class are in follow.
Please help me to solve this issue.
Mohseni Rad.
----------------------------------po.xsd-----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="order" type="OrderType"/>
<xsd:complexType name="OrderType">
<xsd:sequence>
<xsd:element name="shipTo" type="xsd:string"/>
<xsd:element name="billTo" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
------------------------------------po.xml----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<order>
<shipTo>shipto</shipTo>
<billTo>billto</billTo>
</order>
------------------TestWS.java---------------------
import java.io.FileInputStream;
import java.io.IOException;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Unmarshaller;
import wsclient.*;
public class TestWs {
public static void main(String[] args) {
try{
SecondWebServices webService = new SecondWebServicesService
.getSecondWebServicesPort();
JAXBContext jctx = JAXBContext.newInstance("wsclient");
Unmarshaller unmarshaller = jctx.createUnmarshaller();
FileInputStream fl = new FileInputStream( "etc//po.xml" );
JAXBElement<?> order = (JAXBElement<?>)unmarshaller.unmarshal( fl );
OrderType orderType = (OrderType)order.getValue();
webService.read( orderType);
}catch (JAXBException je) {
je.printStackTrace();
catch (IOException ioe) {
ioe.printStackTrace();
}Hi,
When you are using JAX-WS, there is a tool wsimport, with which you are going to generate the artifacts required to implement the web service.
When you pass the WSDL as a parameter to the wsimport tool, it will be create the required beans also(JAXB Objects).
So need of any other external implementation of JAXB when you are working with JAXWS
Thanks, -
Calling web service with basic authentication from EP "unauthorized"
Hello,
I need to call a .NET web service with basic authentication on the IIS from my portal application (no http proxy between portal and IIS). But always I get the following exception:
<b>com.sap.engine. services.webservices.jaxm.soap.accessor. NestedSOAPException:
Problem in server response: [Unauthorized].</b>
I'm using the following code for calling the .NET web service:
<b>...</b><i>Licence_GetList lParameter = new Licence_GetList();
lParameter.setStatus(CEnvironment.TransformStatus_WebService(search));
ILicenceManager lLicMan = (ILicenceManager) PortalRuntime.getRuntimeResources().getService("LicenceManager");
ILicenceManager lLicManSecure = lLicMan.getSecurisedServiceConnection(request.getUser());
Licence_GetListResponse lGetListResponse = lLicManSecure.Licence_GetList(lParameter);</i><b>...</b>
I've also configured a http system in the portal system landscape using the following parameters:
<i>Authentication Method : Basic Authentication
Authentication Type : Server
User Mapping Type : admin,user</i>
The user mapping is also personalized for this system!
What's wrong? Please help! This is really urgent!
Kind Regards
Joerg LoechnerHello Renjith,
here is a small cutout of my "portapp.xml";
<services>
<service alias="LicenceManager" name="LicenceManager">
<service-config>
<property name="className" value="de.camelotidpro.
pct.xi.scm.webservice.LicenceManager"/>
<property name="startup" value="false"/>
<property name="WebEnable" value="false"/>
<property name="WebProxy" value="true"/>
<property name="SecurityZone" value="de.camelotidpro.
pct.xi.scm.webservice.LicenceManager/
DefaultSecurity"/>
</service-config>
<service-profile>
<property name="SystemAlias" value="LicMan_NET"/
</service-profile>
</service>
</services>
I'm using a http system created in the system landscape (alias LicMan_NET). But it seems that this system is not used by the web service call (No error, even if I delete this system!). The code used to call this web service can be found at the top of this threat...
Regards
Joerg Loechner -
Hello,
<br>
<br>
We need to build a web service with a predefined message in our ERP (ABAP), without PI or WebAS JAVA.
<br>
<br>
We thought it should be a simple task, because we had no problem with many other applications and systems when building the same service, but were not able to build it with SAP ABAP, probably as a consequence of our lack of knowledge on ABAP SOAP runtime.
<br>
<br>
We have an external asynchronous process that delivers information to many other systems using web services (information diffusion). Concecuently, the web service call's structure is determined by the caller, so we have to fulfill this structure if we want to receive the info.
<br>
<br>
The owner of the process defined a very simple service call, in which one kind of "record" can be repeated 1 to n times:
<br>
<br>
<br>
<br>
<br>
<br>
<reglasSuscripcion>
<br>
<!Zero or more repetitions:>
<br>
<nombre>?</nombre>
<br>
<valor>?</valor>
<br>
<nombre>?</nombre>
<br>
<valor>?</valor>
<br>
<nombre>?</nombre>
<br>
<valor>?</valor>
<br>
<br>
<nombre>?</nombre>
<br>
<valor>?</valor>
<br>
</reglasSuscripcion>
<br>
<br>
<br>
In order to receive this info, we have to implement an abap web service handler to accept this kind of call, the same way other applications/systems have already done.
<br>
<br>
We tried to build a RFC function call and create a web service with the wizard and it resulted in a web service with the following WSDL:
<br>
<br>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:sap-com:document:sap:soap:functions:mc-style">
<br>
<br>
<br>
<br>
<reglasSuscripcion>
<br>
<!Zero or more repetitions:>
<br>
<item>
<br>
<nombre>?</nombre>
<br>
<valor>?</valor>
<br>
</item>
<br>
<br>
<br>
<br>
<item>
<br>
<nombre>?</nombre>
<br>
<valor>?</valor>
<br>
</item>
<br>
</reglasSuscripcion>
<br>
<br>
<br>
<br>
We found two main problems:
<br>
<br>
1.- When "wrapping" the RFC as a WS with the wizard, for a table datatype it automatically includes the <item></item> tag, so we break the predefined calling rules.
<br>
<br>
2.- The namespace is fixed by the wizard, and we would like to use a common namespace for all the "susbscribers", logically, the namespace fixed by the information diffusion service.
<br>
<br>
We also tried to find info on the outside-in approach for building a web service from the WSDL, but all the info we found required the ESR and we have no PI, just the ERP.
<br>
<br>
Any ideas on how to proceed?
<br>
<br>
Thanks in advance,
<br>
<br>
Joseba M. Iturbe
<br>
<br>
Edited by: Soporte Desarrollo on Mar 5, 2010 10:56 AM#2. I've recently had to "zap" some namespaces in an ECC5 system because the calling (TIBCO) system didn't appreciate the default SAP "urn" default - something to do with multiple colons in the address. There were, I think, just three table this affected, all VEP* ones. I think I should have been able to change these via the virtual interface in SE80 except that the ECC5 code was a bit "light" in this respect, so you may be able to do this now in SOAMANAGER in ECC6 (btw, I also had to re-save the WS definition within WSCONFIG and re-activate the virtual interfaces after this "zap" to generated the associated handler class again).
#1. Given your "name / value" pairs represent a complex type, then it might be better practice to have them as "item" which is probably why SAP proposes it this way... what does your custom function module parameter list look like?
Jonathan -
Get a URL for web service with HTTPS
Hi,
After deploying all required configuration for secure WS, I'm trying to generate a wsdl to give to the third party. I m using the Despay WSDL in Integration Directoryb but that WSDL containt a like staring with the HTTP instead of HTTPS! My question is how to generate a wsdl file with an HTTPS url tot he web service,
Thanks in advance,
Fred.Hi,
>>>WSDL in Integration Directoryb but that WSDL containt a like staring with the HTTP instead of HTTPS! My question is how to generate a wsdl file with an HTTPS url tot he web service,
you don't use the URL from ID - you need to create one yourself and put it there in the generator
Regards,
Michal Krawczyk -
Issue using web-service with forms9i
using web-service with forms9i
Hi
I have a setup of oracle9ias release 2 on solaris machine. I have made a web-service which is deployed on nt machine on weblogic server. I have made a call from my form (forms9i) to this web-service. When i try to use that web-service after deploying my form on solaris, it initializes the web-service and performs the action successfully. Now the problem is that my form also makes a call to report server to generate a report. The problem is when i initialize the web-service and uses its function it works but after that making a call to report server will fail. Also if i make a call to report server first, it generates the report and then i make call to the web-service, then that web-service fails to run. And in both cases, the forms application stops saying session has aborted.
Why cant i make call to both the things in one session of application? What could be the reason for that? Need help urgently.Sorry,
I didn't know that this was necessary to find a solution.
Here are the definition out of the WSDL File:
<xsd:complexType name="ZS_EQART_RANGE_LINE">
<xsd:sequence>
<xsd:element name="SIGN" type="tns:char1"/>
<xsd:element name="OPTION" type="tns:char2"/>
<xsd:element name="LOW" type="tns:char10"/>
<xsd:element name="HIGH" type="tns:char10"/>
</xsd:sequence>
</xsd:complexType>
Thanks for Help
Ron -
Consuming web services with Attachments
Hello,
I need to consume a web service with attachements (mime type) from sap was j2ee 7.0 (nw2004s).
When I try to generate the web service deployable proxy using nwds (version 7.0.06), I get the following error message
"Invalid WSDL or WSDL not found, please specify different WSDL.."
Removing references to"wsi:swaRef" from wsdl, above error is not displayd and wsdl is correctly processed
<complexType name="ArrayOf_tns2_swaRef">
- <sequence>
<element maxOccurs="unbounded" minOccurs="0" name="swaRef" nillable="true" type="wsi:swaRef" />
</sequence>
</complexType>
Unfortunately, we have not been able to find any SAP documentation (online help, oss note,,,) describing if SAP WAS Java 7.0 supports this standard.
Has anybody already worked with Web Services with attachments ?
Thanks in advace,
Regards
Bertahi berta,
http://help.sap.com/saphelp_nw04/helpdata/en/5e/ea656273b74cf386a1f29fc55721fd/frameset.htm
HTTP error 406 when consuming a Web Service with attachment
let me know u need any further info
bvr -
I've created a web service with jbuilder.I've deployed it in weblogic server 7. Jbuilder also creates a client jar file necessary where I want to call my web service. Imagine I want to call my webservice from a .NET platform. How I have to do it? I don't understand how I can create a generic web service that I can call from a J2EE platform or .NET platform...
Any explanation to clarify my ideas?
Thanks!All you need to do to access the web service from a .NET client is to point to the WSDL file generated by JBuilder. Visual Studio .NET will generate all the necessary classes from the WSDL file. You will be able to use these generated client classes to access your Java Web Service
-
Building client proxies for web services with SOAP attachemtns
Hi all.
I'm currently building a series of web services that take SOAP attachments as
input, but I am unable to generate the java proxies for testing the services via
WebLogic Workshop 8.1. When I attempt to build the proxy, I get the following
error:
Warning: Failed to generate client proxy from WSDL definition for this service.
Suggestion: Please verify the <types> section of the WSDL.
Is there something I need to alter to get this to work, or does workshop not support
client proxies for web services with DataHandler parameters?
Thanks.
-BrianThanks for the help. This is my first web service with SOAP attachments, so it
may have been a long time till I realized that.
-Brian
"Michael Wooten" <[email protected]> wrote:
>
Thanks Brian,
The problem is that you are trying to use the "document" soap-style :-)
If you change this to "rpc", you'll should be able to successfully generate
the
client proxy jar. The soap-style property, is at the bottom of the "protocol"
property sheet section, for the JWS.
Regards,
Mike Wooten
"Brian McLoughlin" <[email protected]> wrote:
Sure, sorry about that. Attached is the wsdl for a sample web service
I created
just to test the proxy generation.
"Michael Wooten" <[email protected]> wrote:
Hi Brian,
Would it be possible for you to post the WSDL, so we can see what might
be causing
the problem?
Regards,
Mike Wooten
"Brian McLoughlin" <[email protected]> wrote:
Hi all.
I'm currently building a series of web services that take SOAP attachments
as
input, but I am unable to generate the java proxies for testing theservices
via
WebLogic Workshop 8.1. When I attempt to build the proxy, I get the
following
error:
Warning: Failed to generate client proxy from WSDL definition for
this
service.
Suggestion: Please verify the <types> section of the WSDL.
Is there something I need to alter to get this to work, or does workshop
not support
client proxies for web services with DataHandler parameters?
Thanks.
-Brian -
Web Services with Authentication - User Name and Password.
How to create a web service and web service client where the need is to authenticate using SOAP Header based authentiacation. The authentication is to be based on UserName and Password in the SOAP Header.
Regards
Pramod.Dear Pierluigi Vernetto
What is meant when they say to include SOAPHeader with the parameters UserName, Password for Authentication. How this type of authentication is done.Can you please provide some code snipped to facilitate. I am new to the web services and did successfully a web service generation and client generation using WSDL.
WSDL Snippet :
- <wsdl:operation name="RegisterService">
<soap12:operation soapAction="http://www.abc.com/webservices/RegisterService" style="document" />
- <wsdl:input>
<soap12:body use="literal" />
<soap12:header message="tns:RegisterServiceAuthenticate_Info" part="Authenticate_Info" use="literal" />
</wsdl:input>
- <wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
- <wsdl:types>
- <s:schema elementFormDefault="qualified" targetNamespace="http://www.abc.com/webservices/">
- <s:element name="RegisterService">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="InputText">
- <s:complexType>
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="RegisterServiceResponse">
- <s:complexType>
- <s:sequence>
- <s:element minOccurs="0" maxOccurs="1" name="RegisterServiceResult">
- <s:complexType>
- <s:sequence>
<s:any />
</s:sequence>
</s:complexType>
</s:element>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="Authenticate_Info" type="tns:Authenticate_Info" />
- <s:complexType name="Authenticate_Info">
- <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:sequence>
<s:anyAttribute />
</s:complexType>
If i simply create the web service using the WSDL , will the Authenticate_Info will be taken care of.
What needs to be done for the Client side .jsp code and how this information of UserName and Password will be passed while making the call to the web service.
regards
Pramod. -
SSL Certificate necessary for web Service with HTTPS encoding?
Hi experts,
I wanna create a Web Service with HTTPS. Now when I create an endpoint in Transaction SOAMANAGER, I use "Transport Guarantee Type" HTTPS. I'm a little bit confused, becuase at "Authentication Method I have different options which I don't understand.
At Authentication Method, there are some check boxes.
Whats the difference between HTTP Authentication and Message Authentication?
(Why) can I use User ID/Password as Authentication Method with HTTPS? I think I need X.509 SSL Client Certificate.
What is a Logon Ticket?
Is there a good Documentation in the web, who explains the meaning of the different options and when to use which option?
Thanks and regards,
SebastianHi,
>>>WSDL in Integration Directoryb but that WSDL containt a like staring with the HTTP instead of HTTPS! My question is how to generate a wsdl file with an HTTPS url tot he web service,
you don't use the URL from ID - you need to create one yourself and put it there in the generator
Regards,
Michal Krawczyk
Maybe you are looking for
-
PDF Output - Include headers and footers?
Hi, When I generate a PDF of my web help, I was hoping that it would include the headers and footers that are on my master pages, but it doesn't. I've poked around in the settings, but can't seem to find a way to make this happen. There's no conditio
-
when I click on a link on a web page, and it is a pdf, I get taken to a list of my own hard drive, and am asked to select an application. I have to use safari to download anything! == This happened == Every time Firefox opened == a month a go
-
Hi I was using apache commons-net to FTP some files to an FTP server. I was able to login to the server. I want to know How can I move out from my root directory. Is it possible using apche coomons-net. The working directory displayed is only /home/m
-
Hai, I am trying to integrate all the ejbs into single ear. its fine upto 8 ejb projects, but while trying to add another project ,its giving the error: The error details are: Caught exception during application deployment from SAP J2EE Engine's depl
-
Importing into iPhoto 08... wrong dates
Just finished importing 13 thousand photos and the dates aren't correct. I found one event that had three duplicates all with different dates. Apparently I accidently imported two back ups! Two copies dates are wrong, but the dates that were pulled f