WebService WSDL generation : NoSuchElementException
Hello,
I am using JDeveloper for a short time now. I am already created simple web services successfully.
But when I try to import a project from a colleague, which use the same version as me, each time i try to modify the list of Web Method (using properties on the webservice) or trying to create a new web service on the same project, I got the following error :
An alert box with
Title : Generation Error
Message : generator error : java.utils.NoSuchElementException
After this the .java port file is created but nor the wsdl neither the web service is modified/created.
Reproducible : always on this project.
I have try to recreate the project from source but this I got the same error.
Versions :
jdev: 10.1.3.4.0.4270
jvm : 1.5.0_06
This is very annoying because my dev environment is broken, and I don't know why and what to do.
Any help is really welcome.
Thanks in advance and have a nice week-end.
Hi again,
After spending almost all my friday to try to fix this problem, I finally find the solution today morning.
It was because my jdeveloper was installed in "Program Files\jdeveloper"
But if I locate jdeveloper into C:\jdeveloper\ the problem is solved !
I was lost for a space :)
Similar Messages
-
Error in BI Publisher webservice wsdl
Hello All,
I am using BI Publisher Enterprise 10.1.3.3.0 Standalone.
I am trying to access the Webservice wsdl through the link
http://servername:port/xmlpserver/services/ReportService?wsdl
But i get the following error
AXIS error
Sorry, something seems to have gone wrong... here are the details:
Fault - ; nested exception is:
oracle.xml.parser.v2.XMLDOMException: invalid namespace for prefix xmlns
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: oracle.xml.parser.v2.XMLDOMException: invalid namespace for prefix xmlns
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:INDL223BC
Any pointers on this please ?
Thanks in advance
SulakshanaHi,I find the same eror for you.I want to know if you are installing using the Advanced installation type,please make the Oracle Application Server Installation
Writable:If you are installing using the Advanced installation type, make the user or user group permissions ;writable for the user installing Oracle Business Intelligence, for all Oracle Application Server ;installation directories, subdirectories, and files.Use one of the following procedures, depending on your deployment. -
Problem when invoke the Webservice WSDL
Hi ,
Use case :
I have two applications (Webservices) A and B.They have their own WSDL urls.
From A ---> request format at A ---->Transform that into B request format----->forward that(request) to B request --- > get B response -----> tranfrom that into A response format ----> A response
First part of usecase:
I need to send the request from A to B.But both A and B has different request and response schemas(they will have similar kind of fileds but their naming convention will be different.That is why transformation is required in jdeveloper)
I have developed a composite which has one BPEL process as component.
I am placing the A webservice as "exposed Service" swimlane and B webservice in 'external reference'.BPEL process is in component swimlane.
I deployed that Composite which has above BPEL Process(Takes input from one wsdl url and transforms that request format to (another) webservice request format as explained above) which tries to invoke(send request to) the another webservice Wsdl.
When I test that composite (That WSDL url),I am getting service invokation exception.
Please see the below exception:
java.lang.Exception: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:381) at oracle.sysman.emas.view.wsmgt.WSView.invokeOperation(WSView.java:298) 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 com.sun.el.parser.AstValue.invoke(Unknown Source) at com.sun.el.MethodExpressionImpl.invoke(Unknown Source) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:53) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1256) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:102) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:92) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:361) at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:96) at oracle.adf.view.rich.component.fragment.UIXInclude.broadcast(UIXInclude.java:96) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:756) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:765) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:305) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:185) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.help.web.rich.OHWFilter.doFilter(Unknown Source) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emSDK.license.LicenseFilter.doFilter(LicenseFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.emas.fwk.MASConnectionFilter.doFilter(MASConnectionFilter.java:41) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.AuditServletFilter.doFilter(AuditServletFilter.java:179) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.EMRepLoginFilter.doFilter(EMRepLoginFilter.java:203) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.model.targetauth.EMLangPrefFilter.doFilter(EMLangPrefFilter.java:158) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.core.app.perf.PerfFilter.doFilter(PerfFilter.java:141) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:542) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111) at java.security.AccessController.doPrivileged(Native Method) at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313) at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413) at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94) at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207) at weblogic.work.ExecuteThread.run(ExecuteThread.java:176) Caused by: oracle.sysman.emSDK.webservices.wsdlapi.SoapTestException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:260) at oracle.sysman.emSDK.webservices.wsdlparser.OperationInfoImpl.invokeWithDispatch(OperationInfoImpl.java:992) at oracle.sysman.emas.model.wsmgt.PortName.invokeOperation(PortName.java:729) at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:569) ... 79 more Caused by: javax.xml.ws.WebServiceException: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:837) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.synchronousInvocationWithRetry(OracleDispatchImpl.java:235) at oracle.j2ee.ws.client.jaxws.OracleDispatchImpl.invoke(OracleDispatchImpl.java:106) at oracle.sysman.emSDK.webservices.wsdlapi.dispatch.DispatchUtil.invoke(DispatchUtil.java:256) ... 82 more Caused by: javax.xml.soap.SOAPException: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:231) at oracle.j2ee.ws.common.transport.HttpTransport.transmit(HttpTransport.java:75) at oracle.j2ee.ws.common.async.MessageSender.call(MessageSender.java:64) at oracle.j2ee.ws.common.async.Transmitter.transmitSync(Transmitter.java:134) at oracle.j2ee.ws.common.async.Transmitter.transmit(Transmitter.java:90) at oracle.j2ee.ws.common.async.RequestorImpl.transmit(RequestorImpl.java:273) at oracle.j2ee.ws.common.async.RequestorImpl.invoke(RequestorImpl.java:94) at oracle.j2ee.ws.client.jaxws.DispatchImpl.invoke(DispatchImpl.java:794) ... 85 more Caused by: javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.processHttpResponseCode(HttpSOAPConnection.java:633) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.post2(HttpSOAPConnection.java:501) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection$PrivilegedPost.run(HttpSOAPConnection.java:1261) at java.security.AccessController.doPrivileged(Native Method) at oracle.j2ee.ws.saaj.client.p2p.HttpSOAPConnection.call2(HttpSOAPConnection.java:229) ... 92 more
I am getting "Webservice invokation failed" message and above exception.
I am using some proxy server to access internet in my company. It is telling(If u see above exception u will be able to see) the below info in some part of exception.
javax.xml.soap.SOAPException: Bad response: 401 Unauthorized at oracle.sysman.emas.model.wsmgt.WSTestModel.invokeOperation(WSTestModel.java:575) at
Is there any problem with authentication to that wsdl url?
I think u can understand my problem by looking at above clearly explained content.
Hope u guys will help me out in this issue?
Thanks in advance.
Hope I will receive response as soon as possible as it is very critical at this point.
ThanksHi,
Some part is requiring authentication, either the proxy or the web service provider. First thing is to determine which of them.
Are you able to call B via SOAP-UI? Are you passing authentication in SOAP-UI? If not the problem is in you proxy server.
Check 401 error here:
http://www.checkupdown.com/status/E401.html
Cheers,
Vlad
Give points - it is good etiquette to reward an answerer points (5 - helpful; 10 - correct) for their post if they answer your question. If you think this answer is helpful, please consider giving points. -
Pro: SOAP to RFC, WSDL generation
Hi Frnd,
I am getting problem in the WSDL Generation from the ID,
When i generated it first time i was getting the following in the Soap:address
<soap:address location="http://vessxip01:8001/XISOAPAdapter/MessageServlet?channel=:BS_PWS:CC_PWS_WeighVoidData_SOAPsend&version=3.0;Sender.Service=BS_PWS;Interface=+urn%3Aveoliaes%3APWSTransaction%3ASAPR3toPWS%5EMIout_WeighVoidData" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
But When i am generation it again i am getting the following for the same tag, SOAP:Address
<soap:address location="http://vessxip01:8001/XISOAPAdapter/MessageServlet?channel:BS_PWS:CC_PWS_WeighVoidData_SOAPsend&version=3.0;Sender.Service=BS_PWS;Interface=urn%3Aveoliaes%3APWSTransaction%3ASAPR3toPWS%5EMIout_WeighVoidData" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" />
When we look concentrate i found " + " sign is missing in the next generation.
Please tell me what is the meaning of "+" sign, and why it is not comming in the regeneration of the WSDL.
Where as first one is working fine and the second one is not working.
Thanks,
Raj.http://vessxip01:8001/XISOAPAdapter/MessageServlet?channel:BS_PWS:CC_PWS_WeighVoidData_SOAPsend&version=3.0;Sender.Service=BS_PWS;Interface=urn%3Aveoliaes%3APWSTransaction%3ASAPR3toPWS%5EMIout_WeighVoidData
The WSDL format that you are using is configured to hit the Integration Engine....hence the port number that you use should be that of the Integration Engine......
Now from where will i get this information:
1) Open SAP GUI --- tcode /nSXMB_ADM ---> Integration Engine Configuration ..... you will see the port here.... so if it is 8001 you need to use 8001 in the above URL.....
2) RWB --> Component Monitoring --> Integration Engine --> Test Message .....you can again see the port over here....
If i am not wrong 5XX00 is supposed to be used (mandatory) from PI7.1 onwards.....
Please tell me what is the meaning of "+" sign, and why it is not comming in the regeneration of the WSDL.
absolutely no idea :(.........but never saw a wsdl format with "+" sign in it.....
please correct me for any incorrect information given by me
Regards,
Abhishek. -
WSDL generation from existing WebService
Hello everybody,
we have got an existing WebService which we want to migrate to XI.
Because we don't want to change the clients interfaces we would like to import the WSDL and XSD and than generate a WSDL from XI.
First problem: The WebService exists of two WSDL-File an one XSD. First WSDL has attributes about PORT, SERVER..
The second WSDL has attributes of the request and the response.
So the origin WSDLs/XSD depend on each other, refering by URIs.
How can this be done in XI?
What about the namespaces in XI. Do they have to be the same as in the origin Files?
Thanks a lot, regards MarioHello everybody,
we have got an existing WebService which we want to migrate to XI.
Because we don't want to change the clients interfaces we would like to import the WSDL and XSD and than generate a WSDL from XI.
First problem: The WebService exists of two WSDL-File an one XSD. First WSDL has attributes about PORT, SERVER..
The second WSDL has attributes of the request and the response.
So the origin WSDLs/XSD depend on each other, refering by URIs.
How can this be done in XI?
What about the namespaces in XI. Do they have to be the same as in the origin Files?
Thanks a lot, regards Mario -
WebService proxy Generation - WSDL contails url
Hello,
I'm trying to generate a java proxy for a webservice.
The corresponding WSDl file has references to others urls, for example for the data types. These urls are password protected and the wizard can not open them.
Any idea how to tackle this? How can we provide a userid and password for these urls?
Greetings,
BartHi Bart,
How to pass the userID and password information in the WSDL URL ?Is that your question ?
I so appened the following to your URl
userid=<Username>&password=<Password>
Regards, Anilkumar -
Webservice soap wsdl generation
Hi Experts,
Please Help Me,
Systems. ThirdParty (PHP Portal) --> SAP PI--> SAP ECC
1: What is best practise to add ThirdParty as business service or business system.
Scenario1: TirdParty Request for emp address based on the emp id here emp address in sap ecc.
i would like to use SOAP TO PI TO RFC (req & res bapis)
2. this scenario thirparty will generate wsdl and import to SAP PI or SAP PI side should generate wsdl.1. business service
2. you should generate wsdl from sender agreement in SAP PI (Integration Builder) -
Webservice control generation failled with xsd:all in WSDL, why ?
Hi,
When I try to generate a WS-control out of a WSDL with a
<xsd:all> based type e.g. :
<xsd:complexType name="RemoteComment">
<xsd:all>
<xsd:element name="id" type="xsd:long"/>
<xsd:element name="pageId" type="xsd:long"/>
<xsd:element name="created" type="xsd:dateTime"/>
<xsd:element name="title" nillable="true" type="xsd:string"/>
<xsd:element name="url" nillable="true" type="xsd:string"/>
<xsd:element name="creator" nillable="true" type="xsd:string"/>
<xsd:element name="content" nillable="true" type="xsd:string"/>
</xsd:all>
</xsd:complexType>
(for example Atlassion Conluence's SOAP interface uses this)
I get a ERROR: sites/javapolis/xmlrpc/confluenceservicev1.wsdl Line 3, Col 0: Error in WSDL: Cannot extend a type with 'all' content model
Any ideas anyone ?dieterd,
Try with xsd:sequence intead of xsd:all ? -
JDev 11g - WSDL generation using HTTP binding - WSDL2Java
I'm using JDev 11.1.1.3.0. Trying to create a WSDL that uses only an HTTP binding (non-SOAP) to recreate a web service I'm trying to connect to. My hope is to create the WSDL and use the 'Java Web Service from WSDL' tool (WSDL2Java) to create the Java client code for connecting to the web service. (No, the author of the web service does not support SOAP. Sigh).
First off, I do not see an option to create a straight HTTP binding using the 'WSDL Editor/Create Binding' dialog, (only SOAP11, SOAP12, Java, EJB, JCA, JMS, Custom). So I manually created the binding based on what I could find in the w3c. Here it is slightly modified with bogus namespaces and URL addresses:
<?xml version="1.0" encoding="UTF-8" ?>
<definitions targetNamespace="https://my.server.com/context/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:tns="https://my.server.com/context/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:types="https://my.server.com/context//types"
xmlns:java="http://schemas.xmlsoap.org/wsdl/java/"
xmlns:format="http://schemas.xmlsoap.org/wsdl/formatbinding/">
<types>
<xsd:schema targetNamespace="https://my.server.com/context//types"
elementFormDefault="qualified"/>
<xsd:schema>
<xsd:import schemaLocation="MyRequest.xsd" namespace="https://my.server.com/context//types"/>
</xsd:schema>
<xsd:schema>
<xsd:import schemaLocation="MyResponse.xsd" namespace="https://my.server.com/context//types"/>
</xsd:schema>
<xsd:schema>
<xsd:import schemaLocation="Common.xsd" namespace="https://my.server.com/context//cmn"/>
</xsd:schema>
</types>
<portType name="AvailabilityServices">
<operation name="RequestAvailability">
<input message="tns:AvailabilityRequestMessage"/>
<output message="tns:AvailabilityResponseMessage"/>
</operation>
</portType>
<message name="AvailabilityRequestMessage">
<part name="part" element="types:PNARequest"/>
</message>
<message name="AvailabilityResponseMessage">
<part name="part" element="types:PNAResponse"/>
</message>
<binding name="AvailabilityServicesHTTPBinding"
type="tns:AvailabilityServices">
<http:binding verb="POST"/>
<operation name="RequestAvailability">
<http:operation location="RequestAvailability"/>
<input>
<mime:content type="application/xml"/>
</input>
<output>
<mime:mimeXml/>
</output>
</operation>
</binding>
<service name="AvailabilityService">
<port name="AvailabilityServicesPort"
binding="tns:AvailabilityServicesHTTPBinding">
<http:address location="https://my.server.com/context/"/>
</port>
</service>
</definitions>
I really don't know if the the input and output tags for the binding are correct. I've tried <mime:mimeXml/> for both. I basically want to just send and receive the XSD schemas as straight XML over HTTP. Is this right?
Secondly, when trying to generate the Java code from this WSDL, the generation fails with an IndexOutOfBoundsException:
oracle.jdeveloper.webservices.model.WebServiceException: Error creating model from wsdl "file:/C:/_Developer11g1_1_3_0/work/Web/PriceAvailability/public_html/WEB-INF/wsdl/PriceAvailability.wsdl": Index: 0, Size: 0
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:/C:/_Developer11g1_1_3_0/work/Web/PriceAvailability/public_html/WEB-INF/wsdl/PriceAvailability.wsdl": Index: 0, Size: 0
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:/C:/_Developer11g1_1_3_0/work/Web/PriceAvailability/public_html/WEB-INF/wsdl/PriceAvailability.wsdl": Index: 0, Size: 0
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 $Proxy39.getJaxWsSeiInfo(Unknown Source)
at oracle.jdevimpl.webservices.tools.wsa.WsaAdaptor.getSeiInfo(WsaAdaptor.java:505)
... 11 more
Caused by: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.RangeCheck(ArrayList.java:547)
at java.util.ArrayList.get(ArrayList.java:322)
at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.consolidateInterfaceMappings(WSDLToJavaModelBuilder.java:689)
at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.consolidateInterfaceMappings(WSDLToJavaModelBuilder.java:682)
at oracle.j2ee.ws.tools.jaxws.wsdl.WSDLToJavaModelBuilder.build(WSDLToJavaModelBuilder.java:196)
at oracle.j2ee.ws.tools.wsa.jaxws.JaxwsWsdlToJavaTool.getJAXWSModel(JaxwsWsdlToJavaTool.java:656)
... 20 more
Anybody know how to write a WSDL with a non-SOAP HTTP binding and then generate Java from it?
ThanksOkay, I'll check it out. I know the newest version of SoapUi handles REST services (not sure if that's what I'm trying to attempt) so maybe I could 'ping' the web service using it.
But seeing how this is a JDeveloper forum, I was hoping somebody could help me create a WSDL with HTTP bindings using the JDeveloper tool set, or at least identify if I have correctly defined the HTTP binding in my sample WSDL. Does JDev 11g not have this functionality? -
Error at creating Client Proxy of external webservice (WSDL)
Hi Experts,
I try to create a Client Proxy Object out of an external webservice. Here is the WSDL URL:
[http://www.webservicex.net/CurrencyConvertor.asmx?wsdl]
I try to create it with this URL and then I get the error message
Not implemented
Exception of class CX_SIDL_INTERNAL_ERROR
I found two other threads with a similar problem:
cunsuming external webservice in ABAP
Problem while consuming external webservice
But there is no solution that worked for me. In the first thread it is mentioned, that the code between
<wsdl:binding name="XXXXHttpGet" type="tns:XXXHttpGet">
and it's closing brackets should be removed in a local file. I tried that and was able to create a client proxy object out of this local wsdl-file. But then I called the webservice with the folling coding for testing:
report z_currency_converter.
data: convert type ref to zzzco_currency_convertor_soap.
try.
create object convert
exporting
logical_port_name = 'Z_LP'
catch cx_ai_system_fault .
endtry.
data: output type zzzconversion_rate_soap_out .
data: input type zzzconversion_rate_soap_in .
input-from_currency = 'EUR'.
input-to_currency = 'USD'.
try.
call method convert->conversion_rate
exporting
input = input
importing
output = output
catch cx_ai_system_fault .
catch cx_ai_application_fault .
endtry.
write output-conversion_rate_result.
The same code worked fine in another system. In this "older" system could also create a client proxy, I think because it has a newer Support Pack version.
SAP says the following:
The problem is that this WSDL uses two bindings different from SOAP
binding which is not in conformance with Basic Profile 1.1 -
http://www.ws-i.org/Profiles/BasicProfile-1.1.html#WSDLBINDINGS .
I looked in the document, but I do not know where the problem in the WSDL file exactly is. What have I to change? Or can somebody give me the URL of a free webservice, that you used for creating a client proxy with a new support pack standing? In the "old" system there is not yet the SOAMANAGER but in the one where it doesn't work.
I hope you have an idea.
Thanks a lot in advance!
Best Regards,
IngmarI think it is the problem of version.U need to ask SAP to release some patch levels to correct it.
Regards
Snehasish -
How to get soap request in webservices (WSDL in java)
hi ,,
i did one helloworld app using soap protocol. In that , one soap client invokes the webservices(old java class with WSDL ).Now i want to get the soap document in the web service for to process the soap envelope and parsing and generating the o/p and append to the response then create the soap document for response. plz let me know how to do?
Thanks in advance.Let me see whether I understand. Are you attempting to achieve something like this:
test.cfc
<cfcomponent output="no">
<cffunction name="testFunction" returntype="any" access="remote">
<cfargument name="soapInput">
<cfset var inputXML = arguments.soapInput>
<cfset var soapBodyText="">
<cfset var noBodyTextError="">
<cftry>
<cfset soapBodyText = xmlSearch(inputXML,"//soapenv:Body/text()")[1].xmlValue>
<cfsavecontent variable="noBodyTextError"><?xml version="1.0" encoding="utf-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <soapenv:Body> <soapenv:Fault> <faultcode>soapenv:Server.userException</faultcode> <faultstring>java.lang.Exception: Body not found.</faultstring></cfsavecontent>
<cfif trim(soapBodyText) is "">
<cfthrow>
</cfif>
<cfreturn inputXML>
<cfcatch type="any">
<cfreturn noBodyTextError>
</cfcatch>
</cftry>
</cffunction>
</cfcomponent>
tester.cfm
<cfxml variable="mydata">
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wor="https://www.worldmilesafrica.com">
<soapenv:Header/>
<soapenv:Body>
</soapenv:Body>
</soapenv:Envelope>
</cfxml>
<cfinvoke webservice = "http://127.0.0.1:8500/workspace/wsTest/test.cfc?wsdl"
method = "testFunction"
returnVariable = "result">
<cfinvokeargument name="soapInput" value="#trim(mydata)#" >
</cfinvoke>
<cfdump var="#result#"> -
Regarding Webservice WSDL file
Hello experts,
Please help me by clarifying the below mentioned issue.
I have cretaed a interactive form and placed one button on the form to submit the form data to the webservice.
Now, in the properties of the button(Execute Type) i got the new dataconnection name by choosing the path EDIT-->New Data Connection
and by uploading the WSDL file which was saved on my desktop.
Now, it is working fine and iam able to do the bindings to webservice importing fields.
But the problem is if i remove the WSDL file from the location where it was while creating new data connection in the form.
The interfacing parameters of webservice in the DATA VIEW of the form are going OFF and if i reopen the form it is saying that "the file XXXXXXXXXXXXXXXX not exist".
I tried with giving http URL in creating New data connection, but it is not accepting that URL and saying that "the URL : YYYYYYYYYYYYYYYYYYYYYYYY is invalid"
Iam just following the standard procedure for taking the WSDL file or http UTL.
Am i need to do any thing extra in taking WSDL file or URL?
Regards,
RamNo you are doing it right ....if you enter the url for the wsdl in a browser to you get the wsdl showing up? Are there any dialogs that pop up?
Paul -
Need to call webservice WSDL directly from Java code
Hi All,
I hope u all are doing great.
I am new to web services and i have a requirement where i need to call the webservice directly from the java code, we dont need any middle layer(via proxy n all).
Can you all please help me on this, we are using Jdeveloper 11g and we do have WSDLs
we shld be able to use the wsdl in code and pass the request and get the request
Any help will be appreciated
Thanks@Puthanampatti
Thanks, but i already went through this link and seems this link also says we need to access webserivice through stub,dii etc.
I want straught java code to access webservice without any tier in between
Thanks -
When change a WebService WSDL, Java WD crash
Hi,
I'm facing a problem that I can not fully comprehend. I'm going to explain it hoping for some answers...
I have a WDynpro that call a custom SAP WebService. It works. perfectly.
I change the SAP WebService adding a response field to the existing ones.
I call the WDynpro again and it does not works anymore. I recevie a message like this
"Probably runtime WSDL and design-time WSDL are inconsistent".
Solution found is the foillowing. I change the webdynpro simply reimporting the WS model.
Question is the following: If I add a field in the response of a WebService I need to reimport the model in ALL the Web Dynpros
that use that service ? It sound very strange to me. That means that every change on a WebService correspond to a lot of changes to the DC's using that WebService.
Please explain me....
Thanks a lot.Hi,
A WSDL represents the "Structure" of the Web Service that you are calling. That means, it defines the signature of the methods, which is the Input, output and exception parameters for each one of them.
The WSDL is used for creation of the Web Service Model.
Hence, whenever there is a change in the method signature of the Web Service, the WSDL is also modified, and thus the model.
So it is true that, whenever you are modifying the request, response or the exception of the Web Service, you will need to re-import the Web Service Model. If this Web Service is used as model many DCs or Projects, then yes, it will be required to be re-imported.
While technical / programmatic changes in the method code does not require re-import.
Regards,
Alka. -
WEBService WSDL downloading....
I've been slowly building up my web serivce and Flex UI. Over
time i noted that sometimes it takes a while for the WebService
object to finish loading. My UI blocks until the webservice has
finished loading, since everything the user intends to do will call
the WebService.
My current problem is that the WebService object downloads
the WSDL each time it connects to the newly started service.
Subsequent connects to the webservice are faster, but i can see
(through Fiddler) requests going to download the WSDL and it's
parts. I assume the subsequent connects are faster because the WSDL
is cached due to the browser file caching configuration.
So in the end the first time my user connects to the
webservice (after a fresh start of the webservice), it will take a
little while to download and process the WSDL. Then after that it
will be faster. We'd like to avoid long waits (not "long", talking
seconds here) for the user, we want the UI to be fast.
What i don't understand is that i've coded everything in my
Flex App to communicate with the webservice, so why does the
WebService object require itself to download a WSDL that i've
already build the web app for? It seems redundant to me, because
i've already tested that all my webservice calls will work with the
webservice in question.
Is there a way to avoid this? Maybe take the WSDL that i
build my web app for and include it with the application and have
the user load it locally; thus, avoiding the download of the WSDL.
Any help here would be very appreciated.bumpy
Maybe you are looking for
-
Sender JDBC to Receiver RFC scenario
Hi All, I have to configure an scenario of sender JDBC to receiver RFC wherein SAP PI will be pulling data from third party database (Oracle). Since I am configuring such scenario of sender JDBC, I want help on every important key aspects/prerequisit
-
Wall and/or Car charging iPod Touch 32GB with cell phone/other USB charger
I know the "stock" answer is to buy an iPod compatible charger for my $300 device, but while traveling, it's nice to pack less gadget chargers and more gadgets Can I safely charge my iPod Touch with my LG Phone charger ("5.1V - .07A" output)? I also
-
Why does firefox 4.0 keep freezing when it goes to post something from facebook games?
It sometimes works when posting from "cityville" on facebook, but EVERY time I try to post something from "frontierville" I have to close firefox and restart, and it never posts what I tried to post. For some reason when I try to post something it wi
-
I was given an option to upgrade to Firefox 4, so I did. Ever since I have done this, Facebook is taking a very long time to load. All FB apps either take a few minutes to load or just dont load. I have tried to watch Youtube and the videos are takin
-
Having problems trying to play free online poker http://www.pokerroom.com/ click on instant play and . . . . . . . Safari can't open the page "https://www.pokerroom.com/account/login.php?action=popup&url=%2Fgames%2Fplay%2F% 3Fclientcode%3DP4JA%26extr