To generate 1 wsdl file having many classes
Hi,
I'm working at the project - I'm creating DAL with Oracle JDeveloper
I need to create only 1 wsdl file which includes definitions of every class inside my package
I can't create Web Service from interface or abstract class, can I ?
any idea which works would be helpful, thanks :)
Hi
It is possible to define one WDSL for all the classes in your project. You havent mentioned which webservice you are using currently. If you are using Jax-WS you can create the WSDL from the Interface itself.
Similar Messages
-
How can i use JWSDP1.6 from Ant tool to convert .wsdl file into Java class
Hi All,
i m very new in the development field.plese help me...
i have a .wsdl file and i have to make some modification in the file and return this file with build file used in Ant tool.
means my requirement is to conver the .wsdl file into java class,modify it and convert back to wsdl file.how can i do it using JWSDP1.6 and Ant tool.
thanks in advance...
Vikram Singhlemilanais wrote:
hello!
I have developpe an animation with flash. before give it to othe person in order to use it, i would like to secure it by integrated a security module inside the software.Secure it from what? Being played? Copied? Deleted? Modified?
Because, i am a java developper, i have choose Netbeans 6.1 to secure it.That has to be the most random thing I've read in some time.
do you know how can i do to integrate my animation .swf inside my java class?Java can't play SWF files and Flash can't handle Java classes, so what you're suggesting here doesn't make a lot of sense. -
Error while Generating WSDL File from SAP WSDLGenerator
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at WebServiceDescription.SelectOperation.ShowUDOsList(String sessionID)
at WebServiceDescription.SelectOperation..ctor(String sessionID)
at WebServiceDescription.WsdlServicesGenerator.ShowOptions()
at WebServiceDescription.Form1.btCreateWsdl_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
WsdlServicesGenerator
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/SAP/SAP%20Business%20One%20Web%20Services/WsdlServicesGenerator/WsdlServicesGenerator.exe
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3082 (QFE.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
System.Web.Services
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
axh7tjvl
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
o_2nbqv_
Assembly Version: 1.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
I am facing problem While Generating WSDL File from WSDL Geerator which is provided by SAP Business One
If any body has resolved this. Please help Me...!
Thanks
MritunjayHi.
We've seen that error too few times.
We downloaded the sourcecode for the wdsl generator and discovered,
that in our case, it was because we had no user defined objects.
Its actually a bug as far as I can see, where the wdsl generator tries
to enumerate a empty recordset, and crashes.
Regards
Jørgen T. -
How can i include Services and Bindung in a generated WSDL file?
Hi,
i what to use a generated wsdl file from an erp system, to build a web service client with WSDL2Java (org.apache.axis.wsdl.WSDL2Java).
I noticed, that services an bindings are missing, also a policy is included.
How can i include services and bindings in the wsdl and exclude the policy?
Thanks!well, I assume you have SOAMANAGER.
choose your service & "Apply Selection" (very useless button btw)
select a binding in the dropdown box or create on if you do not have one yet
Click button "Show WSDL options" (actually they do not really look like buttons in WD; call it yellow blot)
Some extra config area is thrown onto your screen (without any sense for usability or design); Change the radio button for WSDL format from "WS policy" to "Standard"; make sure the first radio button group is on "True" for monolithic
Now click the link (why is this a link and no blot?) called "Display selected bindings WSDL URL"
an extra text field is again thrown onto your screen somwhere between the dropdown and the WSDL option config area containing an URL (get out your glasses if you don't see the sub-10pt-letters)
hope it helps,
anton -
Could not able to generate WSDL file in ID
Hi all,
I am Trying to generate wsdl file in ID->tools->define ws.
in overview the following error is displayed.
<?xml version="1.0" encoding="ISO-8859-1"?>
<err>
Object External Message KCRS_WSDL | http://ehro.eds.com/FRAMEWORK/Common | publishLeaveStatusSoapOut | http://www.ehro.eds.com/xsd/utility not found in Integration Repository
</err>
http://host:port /XISOAPAdapter/MessageServlet?channel=p:s:c is given in the step2 ,and required details in step 3 and 4.
in step5 the above error is seen.
Let me knoe where is the problem.
Thanks,
Srinihi
folow these links
/people/daniel.graversen/blog/2008/04/14/use-proxy-to-inspect-httpsoap-requests
https://weblogs.sdn.sap.com/pub/wlg/1442 [original link is broken] [original link is broken] [original link is broken]
https://www.sdn.sap.com/irj/sdn/advancedsearch?cat=sdn_weblog&query=wsdlusingProxy+&adv=false&sortby=cm_rnd_rankvalue
regards
Sandeep
if helpful kindly reward points -
Q <WWSD-10> Is the generated WSDL file by Weblogic use for UDDI registration?
A <WWSD-10> WLS6.1 does not provide UDDI services and it has no automatic way to
register your web service with a service broker or repository. If you were to do
it yourself one of the things you would have to supply would be the WSDL file that
describes your web service.Q <WWSD-10> Is the generated WSDL file by Weblogic use for UDDI registration?
A <WWSD-10> WLS6.1 does not provide UDDI services and it has no automatic way to
register your web service with a service broker or repository. If you were to do
it yourself one of the things you would have to supply would be the WSDL file that
describes your web service. -
Can't create client proxy classes from WebLogic-generated WSDL file
We have a web service that we used to generated a WSDL file. We then used clientgen
to try and create the client proxy classes from the WSDL. This failed. Doesn't
it seem reasonable that if WebLogic creates a WSDL that WebLogic should also be
able to consume that WSDL?Can you please post the wsdl?
Regards,
-manoj
http://manojc.com
"Robert" <[email protected]> wrote in message
news:40db0bc0@mktnews1...
>
We have a web service that we used to generated a WSDL file. We then usedclientgen
to try and create the client proxy classes from the WSDL. This failed.Doesn't
it seem reasonable that if WebLogic creates a WSDL that WebLogic shouldalso be
able to consume that WSDL? -
Problem in generating WSDL file for triggering BPM process
Hello Experts,
I have a working BPM process which I want to trigger using a web service. I am referring following blog link to generate New WSDL file and perform further operations:
/people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
However, it everything goes well until I set the type for the "New Element". I want to set type to context of my component controller. So I selected Set type --> Enclosing Project and I seleted Context of my component controller.
Upon saving this, I am getting this error:
"../../rep/ui/com.sap.demo.wd_ui_mna.wd.comp.c_fillmynameage.C_FillMyNameAgeInterface.xsd" is not a path relative to "src/wsdl/NewWSDLFile.wsdl" because it contains too many '../'
I am not sure what is happening here. I have also removed the response element(s) from WSDL source.
What am I missing here?
Thanks in advance,
AmeyaCross post in EBiz forum -
General EBS Discussion
Regards,
Anuj -
Cannot generate WSDL file with wscompile
I get an error while generating the WSDL file using wscompile tool.
my compile line is "wscompile -gen:server CRAWS.xml -keep" and I get a RmiModeler error with an ClassNotFoundException .
I have put my jar file in the bin folder (same folder of wscompile) and I've also copied my service build files in the same folder (under the package subfolders).
Here is the code of the xml configuration:
<?xml version="1.0" encoding="UTF-8"?>
<configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
<service name="CraWS_Service" targetNamespace="urn:com.servepath.cra/wsdl/CraService"
typeNamespace="urn:com.servepath.cra/types/CraService"
packageName="com.servepath.CraWebService">
<interface name="com.servepath.CraWebService.CraWSIF" servantName="com.servepath.CraWebService.CraWS_Impl"/>
</service>
</configuration>I'm new to Web Services so I'm just guessing, but perhaps you need to add -classpath lib/foo.jar;lib/bar.jar to specify where your class-files are.
-
Generate WSDL File from Management Console?
Hi,
I am trying to enable a batch job as a web service. So I registered the batch I want and I copied the whole file from the u201CView WSDLu201D button. Now I am trying to use axis1.1 to generate the code and am getting errors. Is this supposed to generate a fully working WSDL file?
The first error I get is
org.xml.sax.SAXException: Error: URI=file:/c:/axis/BO.wsdl Line=10: Undeclared prefix in name: "xsd:schema".
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java:619)
at org.apache.crimson.parser.Parser2.error(Unknown Source)
at org.apache.crimson.parser.Parser2.processName(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:367)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:384)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Unknown Source)
So I add
xmlns:xsd=http://www.w3.org/2001/XMLSchema
to my WSDL file. Then I get
org.xml.sax.SAXException: Error: URI=file:/c:/axis/BO.wsdl Line=1393: Undeclared prefix
at org.apache.axis.utils.XMLUtils$ParserErrorHandler.error(XMLUtils.java:619)
at org.apache.crimson.parser.Parser2.error(Unknown Source)
at org.apache.crimson.parser.Parser2.processName(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.content(Unknown Source)
at org.apache.crimson.parser.Parser2.maybeElement(Unknown Source)
at org.apache.crimson.parser.Parser2.parseInternal(Unknown Source)
at org.apache.crimson.parser.Parser2.parse(Unknown Source)
at org.apache.crimson.parser.XMLReaderImpl.parse(Unknown Source)
at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:322)
at org.apache.axis.utils.XMLUtils.newDocument(XMLUtils.java:367)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:384)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Unknown Source)
So I add
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/
Now I am getting other errors
C:\axis>java -classpath C:\j2sdk1.4.2_18\lib\tools.jar;C:\axis\axis-1_1\lib\axis.jar;C:\axis\axis-1_1\lib\axis-ant.jar;C:\axis\axis-1_1\lib\commons-lo
gging.jar;C:\axis\axis-1_1\lib\commons-discovery.jar;C:\axis\axis-1_1\lib\saaj.jar;C:\axis\axis-1_1\lib\jaxrpc.jar;C:\axis\axis-1_1\lib\wsdl4j.jar;C:\
axis\axis-1_1\lib\log4j-1.2.8.jar org.apache.axis.wsdl.WSDL2Java -a c:\axis\BO.wsdl
WSDLException (at /definitions/message[1]/part): faultCode=INVALID_WSDL: Unable to determine namespace of 'di_Wait_Profiling_Task_Output:PF_Task_Response'.:
at com.ibm.wsdl.util.xml.DOMUtils.getQName(Unknown Source)
at com.ibm.wsdl.util.xml.DOMUtils.getQualifiedAttributeValue(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parsePart(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseMessage(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown Source)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:406)
at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:393)
at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:245)
at java.lang.Thread.run(Unknown Source)
So I was curious if this was supposed to be the complete WSDL file?
Thanks in advanceI tried with 11.7.3.7, using the following command and using axis jar files that are bundled with DI
it did generate the java classes successfully
I don't think there is much difference between 11.7.3.5 and 11.7.3.7
java -classpath "C:\j2sdk1.4.2_18\lib\tools.jar;%LINK_DIR%\ext\lib\axis.jar;%LINK_DIR%\ext\lib\commons-logging.jar;%LINK_DIR%\ext\lib\commons-discovery.jar;%LINK_DIR%\ext\lib\saaj.jar;%LINK_DIR%\ext\lib\jaxrpc.jar;%LINK_DIR%\ext\lib\wsdl4j.jar;%LINK_DIR%\ext\lib\log4j-1.2.8.jar" org.apache.axis.wsdl.WSDL2Java -a c:\axis\BO.wsdl
let me know if its works for you, otherwise will check in 11.7.3.5
how are you using these classes ? for calling a Job published as web service, you could write a simple java client application and passing the SOAP request for calling the batch job -
Tools for generating WSDL file
I have created one Java Web Service in Apache Soap. Now I want to create the WSDL file so that my clients will
come to know what is my Web Service about. But I am not able to find any tool which will automatically generate
the WSDL file from the Java Class since my Web Service is purely written in Java. I came to know about GLUE but
was not able to find the link from where I could download it. Can anybody help me to find such tools?I dont want to use Axis. Even Glue has the same command to generate the WSDL file from Java. Do you have any
idea from where I could download Glue? -
Java2WSDL hooks to modify generated WSDL file
I need to programmatically modify the contents of the WSDL file generated by the Java2WSDL command.
How is this done, or is it possible?
The class that I�m using to generates the WSDL from works fine, although a portion of it is missing due to the fact that the class uses meta-data to construct/create this section. (which is what I would have expected anyway).
That�s why I would like to insert the missing piece during the construction of the WSDL.
Basically Java2WSDL hooksI guess the original name in PL/SQL looks like p_ojr, p_ritid, etc.. If you are using 10.1.3 assembler (wsa.jar), I can give you a recipe on how to customize the name mapping. It would help if you can post the PL/SQL declaration part. I can less sure about wheter JDeveloper allows such customization.
-
Netbeans creating wsdl file having message with more than one part...
Hi,
I am using netbeans 6.0.1. I made an xml schema, then I wanted to make an wsdl that uses that schema.
I wanted to put in a message more parts(3), and it would not let me. Then, i made the message with just one part, and added the other parts afterwards.
But now, when I try to make a web service from that wsdl, it says that there is no service in the specified wsdl file.
And if i let that message with just one part, it will make the Web Service.
here is the xml schema and the wsdl file:
XML Schema:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://xml.netbeans.org/schema/Abruf38"
xmlns:tns="http://xml.netbeans.org/schema/Abruf38"
elementFormDefault="qualified">
<xsd:complexType name="FormRequest">
<xsd:sequence>
<xsd:element name="newRequest" type="xsd:boolean"/>
<xsd:element name="requestNumber" type="xsd:int"/>
<xsd:element name="vehicleClass" type="xsd:string"/>
<xsd:element name="vehiclesNumber" type="xsd:int"/>
<xsd:element name="prefferedType" type="xsd:string"/>
<xsd:element name="kombi" type="xsd:boolean"/>
<xsd:element name="usageMission" type="xsd:boolean"/>
<xsd:element name="usageEducation" type="xsd:boolean"/>
<xsd:element name="usageGeneral" type="xsd:boolean"/>
<xsd:element name="usageOthers" type="xsd:string"/>
<xsd:element name="eqVehicle" type="xsd:boolean"/>
<xsd:element name="eqDangerous" type="xsd:boolean"/>
<xsd:element name="eqPlaneSpriegel" type="xsd:boolean"/>
<xsd:element name="eqBegrstll" type="xsd:boolean"/>
<xsd:element name="eqMSitzBTruck" type="xsd:boolean"/>
<xsd:element name="eqVerzurrAusst" type="xsd:boolean"/>
<xsd:element name="eqOthers" type="xsd:string"/>
<xsd:element name="bringService" type="xsd:boolean"/>
<xsd:element name="holService" type="xsd:boolean"/>
<xsd:element name="chauffService" type="xsd:boolean"/>
<xsd:element name="otherService1" type="xsd:string"/>
<xsd:element name="otherService1Chk" type="xsd:boolean"/>
<xsd:element name="otherService2" type="xsd:string"/>
<xsd:element name="otherService2Chk" type="xsd:boolean"/>
<xsd:element name="otherService3" type="xsd:string"/>
<xsd:element name="otherService3Chk" type="xsd:boolean"/>
<xsd:element name="activity" type="xsd:string"/>
<xsd:element name="costPayer" type="xsd:string"/>
<xsd:element name="costCenter" type="xsd:string"/>
<xsd:element name="vehicleCost" type="xsd:float"/>
<xsd:element name="chauffServiceCost" type="xsd:float"/>
<xsd:element name="holBringServiceCost" type="xsd:float"/>
<xsd:element name="totalCost" type="xsd:float"/>
<xsd:element name="tripPurpose" type="xsd:string"/>
<xsd:element name="fixTermin" type="xsd:boolean"/>
<xsd:element name="justificationFix" type="xsd:string"/>
<xsd:element name="requestID" type="xsd:string"/>
<xsd:element name="rentalPeriod" type="tns:RentalPeriod"/>
<xsd:element name="carPool" type="tns:CarPool"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="CarPool">
<xsd:sequence>
<xsd:element name="poolID" type="xsd:string"/>
<xsd:element name="poolName" type="xsd:string"/>
<xsd:element name="orgNumber" type="xsd:string"/>
<xsd:element name="vehicle" maxOccurs="unbounded" type="tns:Vehicle"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="RentalPeriod">
<xsd:sequence>
<xsd:element name="rentalPeriodID" type="xsd:string"/>
<xsd:element name="startDate" type="xsd:date"/>
<xsd:element name="endDate" type="xsd:date"/>
<xsd:element name="startTime" type="xsd:time"/>
<xsd:element name="endTime" type="xsd:time"/>
<xsd:element name="startLocation" type="xsd:string"/>
<xsd:element name="endLocation" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Vehicle">
<xsd:sequence>
<xsd:element name="vehicleID" type="xsd:string"/>
<xsd:element name="vehicleClass" type="xsd:string"/>
<xsd:element name="vehicleRegisterNo" type="xsd:int"/>
<xsd:element name="vehicleType" type="xsd:string"/>
<xsd:element name="seatsNumber" type="xsd:int"/>
<xsd:element name="cost" type="xsd:float"/>
<xsd:element name="available" type="xsd:boolean"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Contact">
<xsd:sequence>
<xsd:element name="contactID" type="xsd:string"/>
<xsd:element name="contactName" type="xsd:string"/>
<xsd:element name="telNumber" type="xsd:int"/>
<xsd:element name="faxNumber" type="xsd:int"/>
<xsd:element name="loNo" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Person">
<xsd:sequence>
<xsd:element name="personID"/>
<xsd:element name="department" type="xsd:string"/>
<xsd:element name="serviceNumber" type="xsd:int"/>
<xsd:element name="contact" type="tns:Contact"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Department">
<xsd:sequence>
<xsd:element name="departmentID" type="xsd:string"/>
<xsd:element name="fundsDepartment" type="xsd:string"/>
<xsd:element name="mvwdst" type="xsd:int"/>
<xsd:element name="distributionNumber" type="xsd:int"/>
<xsd:element name="contact" type="tns:Contact"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="formRequestElement" type="tns:FormRequest"/>
<xsd:element name="personElement" type="tns:Person"/>
<xsd:element name="departmentElement" type="tns:Department"/>
<xsd:element name="vehicle" type="tns:Vehicle"/>
<xsd:element name="loadFormReturn" type="xsd:boolean"/>
<xsd:element name="editFormReturn" type="xsd:boolean"/>
</xsd:schema>
Wsdl File:
<?xml version="1.0" encoding="UTF-8"?>
<definitions name="userWS" targetNamespace="http://j2ee.netbeans.org/wsdl/userWS"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns="http://xml.netbeans.org/schema/Abruf38" xmlns:plnk="http://docs.oasis-open.org/wsbpel/2.0/plnktype" xmlns:tns="http://j2ee.netbeans.org/wsdl/userWS" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<xsd:schema targetNamespace="http://j2ee.netbeans.org/wsdl/userWS">
<xsd:import namespace="http://xml.netbeans.org/schema/Abruf38" schemaLocation="Abruf38.xsd"/>
</xsd:schema>
</types>
<message name="loadFormRequest">
<part name="formRequest" element="ns:formRequestElement"/>
<part name="person" element="ns:personElement"/>
<part name="department" element="ns:departmentElement"/>
</message>
<message name="loadFormReply">
<part name="retVal" element="ns:loadFormReturn"/>
</message>
<portType name="userWSPortType">
<operation name="loadForm">
<input name="input1" message="tns:loadFormRequest"></input>
<output name="output1" message="tns:loadFormReply"/>
</operation>
</portType>
<binding name="userWSBinding" type="tns:userWSPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="loadForm">
<soap:operation/>
<input name="input1">
<soap:body use="literal"/>
</input>
<output name="output1">
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="userWSService">
<port name="userWSPort" binding="tns:userWSBinding">
<soap:address location="http://localhost:18181/userWSService/userWSPort"/>
</port>
</service>
<plnk:partnerLinkType name="userWS1">
<!-- A partner link type is automatically generated when a new port type is added. Partner link types are used by BPEL processes.
In a BPEL process, a partner link represents the interaction between the BPEL process and a partner service. Each partner link is associated with a partner link type.
A partner link type characterizes the conversational relationship between two services. The partner link type can have one or two roles.-->
<plnk:role name="userWSPortTypeRole" portType="tns:userWSPortType"/>
</plnk:partnerLinkType>
</definitions>
The message that Netbeans says when trying to put more parts to the message is:
WS-I Basic Profile Rule R2210: If a document-literal binding in a DESCRIPTION does not specify the parts attribute on a soapbind:body element, the corresponding abstract wsdl:message MUST define zero or one wsdl:parts.
Please...I am desperate, cause I am pressed by time!
Can anyone tell me how can I make it work. Cause it is very common to use a Web service operation that has more than ONE parameter.
I am waiting for your replys!Hi,
Change the <soap:binding style="document"... to <soap:binding style="rpc"... and see if that works.
I'm not sure how to get <soap:binding style="document"... working yet - I'm not that experienced in web services yet.
Hope this helps and is not too late.
Regards,
Greg Nye -
Invoking a method in WSDL file from client class
Hi,
I have got a WSDL file and I have to invoke certian methods from a client class from the WSDL file. What exactly should I do to invoke them from a Java standalone program /servlet/JSP. There is a sayHello() method in the WSDL. Please tell me how to invoke that method from client side. Aslo please let me know the jar files that are needed.
Below is the WSDL file
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="http://tutorial.com" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://tutorial.com" xmlns:intf="http://tutorial.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<!--WSDL created by Apache Axis version: 1.2.1Built on Jun 14, 2005 (09:15:57 EDT)-->
<wsdl:message name="sayHelloResponse">
</wsdl:message>
<wsdl:message name="sayHelloResponse1">
<wsdl:part name="sayHelloReturn" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="addRequest">
<wsdl:part name="a" type="xsd:int"/>
<wsdl:part name="b" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="sayHelloRequest">
</wsdl:message>
<wsdl:message name="addResponse">
<wsdl:part name="addReturn" type="xsd:int"/>
</wsdl:message>
<wsdl:message name="sayHelloRequest1">
<wsdl:part name="name" type="xsd:string"/>
</wsdl:message>
<wsdl:portType name="Hello">
<wsdl:operation name="sayHello">
<wsdl:input message="impl:sayHelloRequest" name="sayHelloRequest"/>
<wsdl:output message="impl:sayHelloResponse" name="sayHelloResponse"/>
</wsdl:operation>
<wsdl:operation name="sayHello" parameterOrder="name">
<wsdl:input message="impl:sayHelloRequest1" name="sayHelloRequest1"/>
<wsdl:output message="impl:sayHelloResponse1" name="sayHelloResponse1"/>
</wsdl:operation>
<wsdl:operation name="add" parameterOrder="a b">
<wsdl:input message="impl:addRequest" name="addRequest"/>
<wsdl:output message="impl:addResponse" name="addResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HelloSoapBinding" type="impl:Hello">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="sayHello">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="sayHelloRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tutorial.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="sayHelloResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tutorial.com" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="sayHello">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="sayHelloRequest1">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tutorial.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="sayHelloResponse1">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tutorial.com" use="encoded"/>
</wsdl:output>
</wsdl:operation>
<wsdl:operation name="add">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="addRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tutorial.com" use="encoded"/>
</wsdl:input>
<wsdl:output name="addResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://tutorial.com" use="encoded"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloService">
<wsdl:port binding="impl:HelloSoapBinding" name="Hello">
<wsdlsoap:address location="http://localhost/WebService1/services/Hello"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Thanks in advance
PrashanthHi.
Please put this line in the google search engine "Invoking java web service" u will get lots of the links.
Sanjay Kumar Gupta
[email protected] -
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
Maybe you are looking for
-
Connecting to SQL server database in JavaFX
Hi all, I am not getting idea how to get connect to database for fetching / storing login data in to database (just an example). I want the procedure how to connect to database javafx application. Please do reply me in this issue. Edited by: Kals123
-
Will the iPhone 4 (5.1) be able to control the new Apple TV through airplay? I have the 1st gen Apple TV at the moment and airplay isn't working (it only works through the laptop if it's on) thanks
-
Whats the best way of watching iplayer through my apple tv?
When mirroring off my mac book pro the picture stutters. When playing iplayer from my iphone the picture is very grainy. And I cannot get it to work from my ipad at all! Any help? Thankyou
-
Problem to open pdf in Windows 8 Domain (Reader X & XI)
Hello, i am not able to open pdf's in windows 8, if i am connected with a domain (normal user & administrator). If i use the local user account (normal user & administrator) it is no problem to open the same pdf! The document is stored on a server, w
-
I have the little "Renew Your Subscription" window that says, "Go tot eh subscription manager to renew your subscription for Adobe Photoshop CC and continue using your product uninterrupted. If you've just renewed your subscription, please wait 15 mi