Unifier Web Service BP Creation
Hi;
I'm trying to create a new Payment Application BP using web services CreateBPRecord() Method.
The result after I call the service indicates an error :
693: Cannot create workflow process.
Does anybody know what is this mean?
(Auto creation setup of the BP is complete on the destination project)
Hi,
Are you accessing teh WSDl from a deployed service ? If yes, when providing the Web Service URL, did you extend the URL with ?WSDL ?
Frank
Similar Messages
-
FIM MA Export errors. There is an error executing a web service object creation.
While checking for the permission, we have figured that the Built-In Synchronization account is being deleted by an Expiration Workflow.
FIM MA Export errors. There is an error executing a web service object creation.
While checking for the permission, we have figured that the Built-in Synchronization account was deleted by an Expiration Workflow
Is there a way to restore. Thanks.I would re-run FIM setup - I think it can re-create this account
If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer. -
Web service proxy creation issue
am facing an issue with the creation of web service proxy for an esb project that i have created based on oracle esb tutorial. In the web service proxy creation wizard, it is accepting the concrete URL for the wsdl in the first step however in the second step it is not showing any endpoint URL. Also the wizard does not allow to go beyond step 2 of the web service proxy creation. following is my wsdl to which the concrete wsdl url points to. What am i missing here. Please help
following is my wsdl
<?xml version= '1.0' encoding= 'UTF-8' ?>
<definitions
name="custinsoap_RS"
targetNamespace="http://oracle.com/esb/namespaces/custdata"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:tns="http://oracle.com/esb/namespaces/custdata"
xmlns:inp1="http://xmlns.oracle.com/Esb/CustomerData"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
<types>
<schema xmlns="http://www.w3.org/2001/XMLSchema" >
<import namespace="http://xmlns.oracle.com/Esb/CustomerData" schemaLocation="public_html/LegacyCustomer.xsd" />
</schema>
</types>
<message name="CustomerData_request">
<part name="CustomerData" element="inp1:CustomerData"/>
</message>
<portType name="Readcustsoapdata_ppt">
<operation name="Readcustsoapdata">
<input message="tns:CustomerData_request"/>
</operation>
</portType>
<binding name="readsoapbinding" type="tns:Readcustsoapdata_ppt">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="Readcustsoapdata">
<soap:operation soapAction="http://oracle.com/esb/namespaces/custdata/Readcustsoapdata"/>
<input>
<soap:body use="literal" parts="CustomerData"/>
</input>
<output>
<soap:body use="literal" parts=""/>
</output>
</operation>
</binding>
<service name="readcustdatasoapservice">
<port name="soapport" binding="tns:readsoapbinding">
<soap:address location="http://myhost.mycompany.com/esb/wsil/custdata/custinsoap_RS"/>
</port>
</service>
</definitions>Hi,
Are you accessing teh WSDl from a deployed service ? If yes, when providing the Web Service URL, did you extend the URL with ?WSDL ?
Frank -
Hello,
I am trying to find out detailed information on the Web Services provided with Unifier. I cannot locate any documentation that describes them or how to access them. It is unclear if ULink is a separate install from Unifier and uDesigner or if the services are part of either of those installs.
Thank you
RudyHi,
We had the same problem with the web services. We haven't fixed the problem of the missing context root '/ws' in our links, but we have fixed the 404 errors. The solution is to add wsdl4j-1.*.jar to Tomcats shared classpath, in our install it is located in C:\Unifier\Shared\lib . Restart the server and you should be able to access the wsdl's at
http://spgpvu091100midt1.see.oracle.com:8080/ws/services/{SomeService}?wsdl
Regards,
Matt James -
Web Service model creation : no error, but no model created
Hi all,
I would like to create a Web Service service model : Models-> Create Model -> Import Web Service model -> Local File System or URL
I am using a local WSDL file. My NWDS version is 7.0.6.
Everything seems to be OK, I don't get any error, but unfortunaltely no model is created, although I see that some files are generated in the 'proxies' folders.
Here is the WSDL file I want to import. Does something look wrong to you ?
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions name="askalli_DnB_inbound" targetNamespace="http://hermes.hd.corp.local/DNB/" xmlns:webM="http://www.webMethods.com/noNamespace/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://hermes.hd.corp.local/DNB/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://hermes.hd.corp.local/DNB/RQ" xmlns:ns="http://hermes.hd.corp.local/DNB/RQ" xmlns:ns2="http://hermes.hd.corp.local/DNB/RQ">
<xsd:import namespace="http://hermes.hd.corp.local/DNB/RQ" schemaLocation="GALookUpTrnRq.xsd" />
</xsd:schema>
- <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://hermes.hd.corp.local/DNB/RS" xmlns:ns="http://hermes.hd.corp.local/DNB/RS" xmlns:ns2="http://hermes.hd.corp.local/DNB/RS">
<xsd:import namespace="http://hermes.hd.corp.local/DNB/RS" schemaLocation="GALookUpTrnRs.xsd" />
</xsd:schema>
</wsdl:types>
<wsdl:message name="DGX" />
- <wsdl:portType name="askalli_DnB_inboundPortType">
- <wsdl:operation name="DGX">
<wsdl:input message="tns:DGX" />
<wsdl:output message="tns:DGX" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="askalli_DnB_inboundBinding" type="tns:askalli_DnB_inboundPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="DGX">
<soap:operation soapAction="" />
- <wsdl:input>
<soap:body use="literal" />
</wsdl:input>
- <wsdl:output>
<soap:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="askalli_DnB_inboundService">
- <wsdl:port name="askalli_DnB_inboundPort0" binding="tns:askalli_DnB_inboundBinding">
<soap:address location="http://10.24.20.94:8087/soap/DnBSoapProcessor" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
(the XSD files that are referenced in this file are located in the same directory).
Thank you in advance.
Best Regards,
JulienThanks for sharing your tips on this forum, as it will be useful for other users, that run into this issue.
Feedback like this will also help us improve error reporting in the next release, as missing class files in the packaged application is a common issue when developers are moving from the embeded oc4j instance packaged with JDewveloper to standalone instances.
-Eric -
Deprecated Web service model creation
Dear, guru,
I tried to create Web service model (deprecated) based on local WSDL file. No one item under Model node in Web Dynpro explorer have found. What is matter? How can I create WS model in NWDS 7.0.13? Do I update NetWeaver studio or something like that? Please, help me.
Thanks.Hi
Up to my knowledge create web service model (Deprecated) when we are using Webservice of Enterprise bean and when we are creating from R/3 System then use a model of Adaptive webservice model.
Onething after creating the model you have to select local file system or URL
Thanks,
Tulasi Palnati
Edited by: Tulasi Palnati on Jul 21, 2008 2:50 PM -
Web service destination creation
In CE 7.2 I need to a create a new web service destination and assign destination type.
Please guide me with any sdn blogs or docs.
Any help is appreciated
Thank youHi,
Refer Topic "Create Web Service Destinations" in:
http://help.sap.com/saphelp_nwce72/helpdata/en/b6/51ee06ce8244aa9e3e55fc07e88b79/frameset.htm
Rgds,
Soujanya -
Unifier Web Services - CreateBPRecord throws NullPOinterException
I am attempting to call the "createBPRecord" web service to add a "Vendor Log" entry, and am getting a NullPointerException. I followed the instructions in the documentation to first call getBORecord to obtain the proper structure. I did this, and with this structure I am able to call "updateBPRecord" and update a record I created through the UI. However, this same structure is throwing an error when call the "createBPRecord" service. Something strange is that the call works temporarily. Despite the error, I can perform a find for the "Vendor Log" entry and it is returned. After a brief period though, it disappears and it is no longer returned with the find operation.
Is anyone else having this, or a similar issue?Note: Following the same approach, I was able to create a "Vendor Evaluation" BP record. This problem seems to be specific to creating a BP record for the "Vendors" BP.
-
Using Eclipse Ant tasks - for web service client creation
Hi,
I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
Please do let me know if anyone have any ideas on this asap.
Thanks,
Roopa.Hi,
I am following Eclipse documentation for creating Axis runtime environment web services and clients using web services Ant tasks.
As per document when I import Ant files into workspace, files that will be imported are wsgen.xml (Ant file) , axisservice.properties and axisclient.properties but for me these files are not getting imported into the project instead files axis_bujava.properties and axis_bujava.xml are imported.
Please do let me know if anyone have any ideas on this asap.
Thanks,
Roopa. -
Error while creation of web service model in web dynpro
Hi,
I am getting following error "no services available or local server not accessible" while creation of web service model.
I have already created my web service nad deployed it. It was deployed successfully.
In the web service model creation wizard I am not able to see neither my web service nor any other standard service.
Regards,
Anubha PandeyAre you using the deprecated Web Services model or the new adaptive web services model?
Take a look in this document: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/b2bc0932-0d01-0010-6d8e-cff1b2f22bc7 -
Oracle service bus and composing two web services
All,
Do let me know your thoughts on this.
Currently we have two web services
Web Service 1 - Verify Eligibility
Web Service 2 - Approve Proposal
Web Service 1 has one operation and accepts a well defined set of input parameters similarly web service 2 also exposes a single operation and accepts a set of input parameters.
These are deployed and running in our environment.
Now we have a requirement to stitch together these two web services and expose them as one single composite web service on the Oracle Service Bus 11g.
I want to create a proxy service on the OSB as unified web service (having its own WSDL) by composing the operations and input plus output parameters of the aforementioned two web services.
This way we can publish the WSDL to the front-end apps and they will trigger it with the required parameters and the proxy service will orchestrate the call to WS1 and WS2 and send the final output back to the calling client.
I was able to create an outbound call from the Proxy service to the underlying business services but I am not able to expose the Proxy service as web service with a WSDL i.e. create the proxy service by choosing operations of Web service 1 and web service 2
Please let me know your thoughts on this.
Regards,
SushantThanks Atheek
The proxy service I tried to create orchestrate 2 web services.
But where we are struggling is How can i make this proxy service (composite) as a web service along with the WSDL.
The proxy service should be able to accept calls from the client with set of inputs representing both the underlying web services and coordinate calls b/w these two services and return consolidated output back to the calling client.
I am not finding a way to create a proxy service (web service along with the wsdl) which is representative of the underlying web services in a consolidated manner that can accepts inputs on behalf of both the underlying web services, orchestrate calls b/w the 2 web services and return the final output back to the calling client.
example modified to keep it brief
web service1
operation name: Verify Eligibility
Input: Complex type (String name, int Id, String address)
Output: Complex type(String approval status, int Id, String reason)
web service2
operation name: Approve Proposal
input: Complex type(String approval status, int Id, String reason, int Amount, int EmployeeCount)
Output: Complex type (String final status, String recommendation)
Composite Proxy Web Service
name: Composite Eligibility and Approval
Input: Complex type ( String name, int Id, String address, int Amount, int EmployeeCount)
Output: Complex type(String approval status, int Id, String reason,String final status, String recommendation)
The composite proxy should be created in a manner to jam the inputs of both the underlying web services and expose a representative interface on behalf of both the web services. This composite web service interface creation (WSDL) is where we are struggling a bit.
Because the calling clients need a unified WSDL to able to communicate with the composite web service.
Do post your thoughts.
Thanks Again,
Sushant -
Web Service Proxy not returning Response in 11g
Hi,
I am facing a difference in the creation of Web Service Proxy in 11g when compared to 10g. I have exposure of creating a Web Service Proxy in 10g and I do observe that the folder name 'runtime' gets generated automatically along with the proxy at the time of creation.
But in 11g, the nature & behavior of Web Service Proxy creation has changed a lot according to my observation. I am facing an issue where the response object is not returning the expected results as per the functionality.
In 10g, we have used a Stub class (automatically created under 'runtime' folder) and we are able to put some logs to see the request and response object in the form of 'xml'. But in 11g, I am facing difficulty in getting the same logged to see the response from OPA.
Please share your thoughts which would definitely help me in resolving this issue.
With Regards,
Thiyagarajan VHi,
I have also tried using 'Web Service Data Control' as an alternate method to overcome the above mentioned issue. But I have ended up the error "DCA-29000: Unexpected exception caught: java.lang.NullPointerException,msg=null" and failed to create a data control.
The JDeveloper version which I am using is 11.1.1.5.0. I also came to know that there is a patch (9790388) which has resolved this bug in JDeveloper. I also applied the same patch in my Oracle Home using OPatch utility.
But unfortunatley, the version suitable for this patch is 11.1.1.4.0 and I suspected that could be one of the reason that the problem has not got resolved yet.
Please suggest the patch or any solution which can also help me in resolving this issue. I really appreciate your time and effort in sharing your thoughts for the problems which I have mentioned over here.
Thank you !!!
With Regards,
Thiyagarajan V -
Error when trying to create a web service from a wsdl file using jdeveloper
Hello,
I'm using the latest jdeveloper and jdk 6 update 20 on solaris sparc 10.
When I'm trying to create a web service from a wsdl on the java EE 1.5 platform i get the following error:
Validation failed:
java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
I've tried the endorsed mechanism with the latest jaxws-api.jar and jaxb-api.jar packages with no help.
It works fine when i use the java EE 1.4 platform....
The full Error description:
oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1635)+
+ at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2846)+
+ at oracle.jdeveloper.webservices.model.WebService.createServiceFromWSDL(WebService.java:2611)+
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.setDescription(JavaWebService.java:745)+
+ at oracle.jdevimpl.webservices.wizard.jaxrpc.topdown.TDJaxWsSpecifyWsdlPanel.setDescription(TDJaxWsSpecifyWsdlPanel.java:364)+
+ at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel.buildModel(SpecifyWsdlPanel.java:1109)+
+ at oracle.jdevimpl.webservices.wizard.jaxrpc.common.SpecifyWsdlPanel$5.run(SpecifyWsdlPanel.java:661)+
+ at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:655)+
+ at java.lang.Thread.run(Thread.java:619)+
Caused by: oracle.jdeveloper.webservices.tools.WsdlValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.newWsdlValidationException(WsaAdaptor.java:825)+
+ at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:515)+
+ at oracle.jdeveloper.webservices.tools.WebServiceTools.getSeiInfo(WebServiceTools.java:523)+
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.getSeiInfo(JavaWebService.java:1741)+
+ at oracle.jdeveloper.webservices.model.java.JavaWebService.createPortTypes(JavaWebService.java:1496)+
+ ... 8 more+
Caused by: oracle.j2ee.ws.common.tools.api.ValidationException: Error creating model from wsdl "file:/vobs/NMS/NorthBoundIF/MTOSI/MTOSI_Documentation/DDPs/ResourceTroubleManagement/IIS/wsdl/AlarmRetrieval/AlarmRetrievalHttp.wsdl": java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:664)+
+ at oracle.j2ee.ws.tools.wsa.WsdlToJavaTool.createJAXWSModel(WsdlToJavaTool.java:475)+
+ at oracle.j2ee.ws.tools.wsa.Util.getJaxWsSeiInfo(Util.java:1357)+
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)+
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)+
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
+ at java.lang.reflect.Method.invoke(Method.java:597)+
+ at oracle.jdevimpl.webservices.tools.wsa.Assembler$2$1.invoke(Assembler.java:218)+
+ at $Proxy34.getJaxWsSeiInfo(Unknown Source)+
+ at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)+
+ ... 11 more+
Caused by: java.lang.RuntimeException: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:186)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.annotateReference(AbstractField.java:209)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.annotate(AbstractField.java:164)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractFieldWithVar.createField(AbstractFieldWithVar.java:75)+
+ at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:89)+
+ at com.sun.tools.xjc.generator.bean.field.SingleField.<init>(SingleField.java:76)+
+ at sun.reflect.GeneratedConstructorAccessor53.newInstance(Unknown Source)+
+ at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
+ at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
+ at com.sun.tools.xjc.generator.bean.field.GenericFieldRenderer.generate(GenericFieldRenderer.java:64)+
+ at com.sun.tools.xjc.generator.bean.field.DefaultFieldRenderer.generate(DefaultFieldRenderer.java:75)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.generateFieldDecl(BeanGenerator.java:751)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.generateClassBody(BeanGenerator.java:539)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:241)+
+ at com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:181)+
+ at com.sun.tools.xjc.model.Model.generateCode(Model.java:286)+
+ at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:251)+
+ at com.sun.tools.xjc.api.impl.s2j.SchemaCompilerImpl.bind(SchemaCompilerImpl.java:85)+
+ at oracle.j2ee.ws.common.tools.databinding.jaxb20.JAXB20TypeGenerator.generateJavaTypes(JAXB20TypeGenerator.java:117)+
+ at oracle.j2ee.ws.tools.wsa.SchemaTool.genValueTypes(SchemaTool.java:186)+
+ at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:647)+
+ ... 20 more+
Caused by: java.lang.NoSuchMethodException: com.sun.tools.xjc.generator.annotation.spec.XmlElementRefWriter.required(boolean)
+ at java.lang.Class.getMethod(Class.java:1605)+
+ at com.sun.tools.xjc.generator.bean.field.AbstractField.getMRequired(AbstractField.java:184)+
+ ... 40 more+
Thanks,
Roy.Guys,
You are asking about an issue that was a pain in the nick for me few months ago. The problem is that you won't find mych help here as I figured out that Apex geeks here either did not do much webservices or ended up hating it as i do :) . This is an error that can be due many different reason, let me ask you this:
1- Does your the other system you are trying to call through webservices using HTTPS ?
2- If yes, did you create a valid oracle wallet for that https connection ?
3- Make sure you are using the correct URL ( am sure you do, just double check )
4- If using a proxy, then you have to define that in the web service reference creation page
provide more info and I hope I can help you with this,
Sam
Please reward good answers by marking them correct or helpful! -
Leading ? xml version="1.0"? tag when creating / invoking web services
Hello friends. I'm wondering if anyone has any insight as to why I cannot create
a fully formed XML document when developing a web service which includes the standard
<? xml version="1.0" ?> leading tag.
If I include the leading tag in my XML mapping for a jws method, I am unable to
compile the service into an ear, getting the following error: "An unexpected
exception occurred while attempting to process the classes and annotations for
this Web Service." If I do not include the leading tag, I can compile into an
EAR file and invoke the web service from a HTTP POST, but I cannot include the
leading <?xml...> tag in my request. Considering that I'll be asking other vendors
to submit to my web services and creation of xml documents using DOM or other
methods automatically generates the <?xml ...>, I'm hoping I'm not going to have
to tell them to parse out this piece of the files they want to send me. Can anyone
help?
Thanks so much!
CMCM,
I suppose you have set 'http-xml=true' for this to work. For http-xml
protocol, there is no way to specify the leading <?xml> tag, and hence
unfortunately the desired functionality cannot be achieved.
In case, this is very important for you, could you please log a support
case, and then we can file a bug and ask the Engineering to look into it.
Thanks,
Anurag
"Crackhead Millionaire" <[email protected]> wrote in message
news:[email protected]...
>
Hi Anurag -
Thanks for the response. My problem is that I would like to be able tosubmit
straight XML (i.e., not SOAP) to a webservice from an application outsideof Weblogic.
For example, the following code block fails on submission to BEA:
* Example Simple Integration.
import java.io.*;
import java.net.*;
public class testBEAPost {
* Null constructor.
public testBEAPost () {
super();
* This method handles creation of a PeopleSoft XML Envelope, wrapping of
* user input into the envelope, submission of the message to theintegration
broker
* and display of the response message to the screen.
* @created 3.12.2003
* @param argv java.lang.String[] Standard user entry input
public static void main(String[] argv) {
try{
URL url;
URLConnection urlConn;
DataOutputStream printout;
DataInputStream input;
// Create the internal XML document which will be to send to BEA.(hardcoded)
>
String internalXMLDoc = "<? xml version=\"1.0\"?><newlocationxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"><setid>WMS</setid><l
ocationid>1118UG0000</locationid><description>Electric
UndergroundLocation</description><exceptionemailaddress>[email protected]<
/exceptionemailaddress></newlocation>";
>
// Define the target URL.
url = newURL("http://167.75.117.20:7001/WebServices/PeopleSoftWebServices/NewLocation
Service.jws/createLocation");
>
// Open the Conection
urlConn = url.openConnection();
// Set necessary connection variables.
urlConn.setDoInput (true);
urlConn.setDoOutput (true);
urlConn.setUseCaches (false);
// Specify the content type.
urlConn.setRequestProperty("Content-Type", "text/xml");
// Send POST output.
printout = new DataOutputStream (urlConn.getOutputStream ());
printout.writeBytes (internalXMLDoc);
printout.flush ();
printout.close ();
// Get response data.
input = new DataInputStream (urlConn.getInputStream ());
String str;
while (null != ((str = input.readLine())))
System.out.println (str);
input.close ();
} catch (Exception e)
System.out.println(e);
If I run this program, I get a java.io.IOException with the serverreturning a
500 error code. However, if I strip out the leading <? xml version="1.0"?> tag
and submit to the web service, it works fine. My program set I createdthis example
for uses DOM to create the document, so I'm actually creating thedocument, getting
the String value of it, then parsing out the leading tag beforesubmission. My
problem is that soon I'll be dealing with third parties who may havetrouble generating
SOAP requests (don't ask), so I'd like to be able to tell them to generatesimple
XML documents to send to BEA if at all possible.
Can you assist? Thanks so much.
"Anurag Pareek" <[email protected]> wrote:
CM,
A SOAP message generated by a Workshop web service, when it acts as a
client
to another service, always contains the leading <?xml> tag. Here is a
sample
of a SOAP message generated by Workshop:
POST /TestImport/TestAny/TestAny.jws HTTP/1.0
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client
Protocol 1.0.3705.0; BEA WLW 7.0)
SOAPAction: "http://www.openuri.org/hello2"
Host: localhost
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: Keep-Alive
Content-Length: 398
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<hello2 xmlns="http://www.openuri.org/">
<o></o>
</hello2>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
It seems to me that what you are asking for is already there. Could you
please elaborate your issue further, probably with a sample of a XML
message
which you feel is not accepted by Workshop, but should be.
Thanks,
Anurag
"Crackhead Millionaire" <[email protected]> wrote in message
news:[email protected]...
Hello friends. I'm wondering if anyone has any insight as to why Icannot
create
a fully formed XML document when developing a web service which
includes
the standard
<? xml version="1.0" ?> leading tag.
If I include the leading tag in my XML mapping for a jws method, Iam
unable to
compile the service into an ear, getting the following error: "Anunexpected
exception occurred while attempting to process the classes and
annotations
for
this Web Service." If I do not include the leading tag, I can compileinto an
EAR file and invoke the web service from a HTTP POST, but I cannotinclude
the
leading <?xml...> tag in my request. Considering that I'll be askingother vendors
to submit to my web services and creation of xml documents using DOMor
other
methods automatically generates the <?xml ...>, I'm hoping I'm notgoing
to have
to tell them to parse out this piece of the files they want to sendme.
Can anyone
help?
Thanks so much!
CM -
Hi,
Our company has a SAP Netweaver Enterprise Portal implementation.
Recently we have been asked to create a Web service from a Java class in SAP Netweaver using Netweaver Developer Studio. The connection to Web service must be an https connection.
In steps of web service's creation we saw that we have the option to create an https (secure soap) web service.
Can anyone tell us how we can create an https web service?
The portal server belongs to a Windows Active Directory Domain that has a Certification Authority from which we can request and take a certificate.
What is the configuration that we must do on server, so that we can call the web service using https?
Thanks in advancedHi,
Check this URL:
[Web Services Over SSL |http://www.pankaj-k.net/WSOverSSL/WSOverSSL-HOWTO.html]
Regards,
Shyam.
Maybe you are looking for
-
Post Author: cjsmile2106 CA Forum: Formula Hello Everyone I have a weird problem. I have a report that has three groups. In each group I have manual running totals. I would like to take a manual running total that I have in Group 2 and subtract
-
Can anyone explain what the status of clearing means when viewing standby redo log status? SQL> select status from v$log; STATUS CLEARING CLEARING CURRENT This is a bit different to what we'd see on an open database.
-
Mon Iphone ayant des soucis de plantage d'app, je l'ai restauré ce w/e. Je suis sous mac OS X 10.4.11 et mon Iphone 3GS sous firmware 4.1. Or, à la restauration du portable, une partie de mes applications sont devenues inaccessibles (Facebook, eurosp
-
Project Files & Workspace Files
The 3rd demo on workspaces talks about keeping the project files separate from the workspace files. But it does not tell me why I would want to do that. Does anyone know where I could find more info on the topic? Thanks Mathias
-
Hi All, I have a two reports in my dashboard, One for asking list of search key words when user click Search (html button) it navigates to report two with the necessary parameters and filter done. Now there is one new requirement came up like, user w