cancel
Showing results for 
Search instead for 
Did you mean: 

wsdl failing while creating web service sys, can anyone please tell me why

Former Member
0 Kudos

hi gurus.

this wsdl is failing when i am trying to create a web service system in VC.

can anyone please tell me the reason after having a look at it.

<?xml version="1.0" encoding="ISO-8859-1"?>
<wsdl:definitions targetNamespace="http://www.abc.com/OneSecService"
xmlns:apachesoap="http://xml.apache.org/xml-soap" 
xmlns:impl="http://www.abc.com/OneSecService" xmlns:intf="http://www.abc.com/OneSecService" 
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:tns1="urn:OneSecService" 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.1
Built on Jun 14, 2005 (09:15:57 EDT)-->
    <wsdl:types>
        <schema targetNamespace="http://www.abc.com/OneSecService" xmlns="http://www.w3.org/2001/XMLSchema">
            <import namespace="urn:OneSecService"/>
            <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
            <complexType name="ArrayOf_xsd_anyType">
                <complexContent>
                    <restriction base="soapenc:Array">
                        <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]"/>
                    </restriction>
                </complexContent>
            </complexType>
        </schema>
        <schema targetNamespace="urn:OneSecService" xmlns="http://www.w3.org/2001/XMLSchema">
            <import namespace="http://www.abc.com/OneSecService"/>
            <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
            <complexType name="UserContext">
                <sequence>
                    <element name="checkSum" nillable="true" type="xsd:string"/>
                    <element name="firstName" nillable="true" type="xsd:string"/>
                    <element name="lastName" nillable="true" type="xsd:string"/>
                    <element name="localeName" nillable="true" type="xsd:string"/>
                    <element name="orgId" type="xsd:long"/>
                    <element name="orgName" nillable="true" type="xsd:string"/>
                    <element name="roles" nillable="true" type="impl:ArrayOf_xsd_anyType"/>
                    <element name="sessionId" nillable="true" type="xsd:string"/>
                    <element name="timeZoneId" nillable="true" type="xsd:string"/>
                    <element name="userId" nillable="true" type="xsd:long"/>
                    <element name="userName" nillable="true" type="xsd:string"/>
                    <element name="valid" type="xsd:boolean"/>
                </sequence>
            </complexType>
        </schema>
    </wsdl:types>
    <wsdl:message name="authenticateResponse">
        <wsdl:part name="authenticateReturn" type="tns1:UserContext"/>
    </wsdl:message>
    <wsdl:message name="authenticateRequest">
        <wsdl:part name="username" type="xsd:string"/>
        <wsdl:part name="password" type="xsd:string"/>
    </wsdl:message>
    <wsdl:portType name="OneSecServiceImpl">
        <wsdl:operation name="authenticate" parameterOrder="username password">
            <wsdl:input message="impl:authenticateRequest" name="authenticateRequest"/>
            <wsdl:output message="impl:authenticateResponse" name="authenticateResponse"/>
        </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="OneSecServiceSoapBinding" type="impl:OneSecServiceImpl">
        <wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
        <wsdl:operation name="authenticate">
            <wsdlsoap:operation soapAction=""/>
            <wsdl:input name="authenticateRequest">
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://impl.security.service.server.abc.com" use="encoded"/>
            </wsdl:input>
            <wsdl:output name="authenticateResponse">
                <wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://www.abc.com/OneSecService" use="encoded"/>
            </wsdl:output>
        </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="OneSecService">
        <wsdl:port binding="impl:OneSecServiceSoapBinding" name="OneSecService">
            <wsdlsoap:address location="http://ps2487:9080/abcweb/services/OneSecService"/>
        </wsdl:port>
    </wsdl:service>
</wsdl:definitions>

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Have a look at the Visual Composer FAQ:

https://wiki.sdn.sap.com/wiki/display/VC/WebServiceInvalid+URL

Former Member
0 Kudos

hi mario , i went thru it , din get much help ..

have two main doubts.

1) Can i have user defined Datatype in my wsdl as presently the methods i am exposing take User Defined Datatypes as input parameter and return type is also User Defined. so if u check my wsdl that i have pasted above. there is a namespace tns1:OneSecService.

and in the request response the UserDefinded DataTpye is Usercontext.

Does SAP allow this.

2) <b> wsdl:soap operation soapAction="'</b> , soapAction is null over there .<b> is this allowed</b> as i read somewhere taht , <b>attibute soapAction required if binding transport is "http://schemas.xmlsoap.org/soap/http"</b>

does SAP allow a null soapAction ?

Former Member
0 Kudos

Hi Rohit,

When I saved this wsdl file in my local client and try using it in NWDS it works correct. Are you also saving the wsdl file in client machine and then trying it?

Regards,

Vishal

Former Member
0 Kudos

Hi vishal , this webservice is part of my j2ee application deployed on websphere . Using VC i am trying to Define a web service system , but it says "InValid Web service URL" , no idea why it is giving so .

Former Member
0 Kudos

Can you save this WSDL file in a local machine and then try to use in VC

Regards,

Vishal

Former Member
0 Kudos

hi vishal , can you please tell me how can i do that ?

as while defining web service system in VC, it asks for url .

please do let me know how are u testing it after saving on local machine.

Former Member
0 Kudos

Actually I tries in NWDS where it ask for client or server WSDL path. Once when I was dealing with WSDL, my application was unable to detect the url and was giving error. Saving it locally solved the issue.

If VC donot support this then I am not sure how to achieve this. May be if you have some IIS server in network you deploy and use that URL.

For a sure your WSDL file is correct and some how VC is unable to connect to server where this WSDL is stored. Changing the access url by replacing server name to IP address can also be a option.

Regards,

Vishal

PS: Reward points if answer is of use.

Former Member
0 Kudos

thanks vishal , but i have to make it work from VC.

putting some of the traces that i am gettting in the logs, pleae tell me if similar issue ever occured.

Caused by: java.lang.ClassCastException
at com.sap.engine.services.webservices.espbase.client.dynamic.types.impl.MetadataLoader.LoadMetaData(MetadataLoader.java:260)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.initServiceBase(DGenericServiceImpl.java:176)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:147)
	... 53 more

#
HandlersFactory: getHandler() Failed to init handlerCould not load URL. Validate URL and proxy settings#
impl:3]_33##0#0#Path##Java###Exception {0}#1#: Could not load URL. Validate URL and proxy settings
java.lang.Exception

Caused by: com.sapportals.connector.ConnectorException: Could not load URL. Validate URL and proxy settings
	at com.sap.portal.connector.webservices.metadata.functions.esp.wsdlurl.URLHandler.loadHandler(URLHandler.java:40)
	

Caused by: com.sap.engine.services.webservices.jaxrpc.exceptions.WebserviceClientException: GenericServiceFactory initialization problem. Could not load web service model. See nested exception for details.
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.generateProxyFiles(DGenericServiceImpl.java:149)
at com.sap.engine.services.webservices.espbase.client.dynamic.impl.DGenericServiceImpl.<init>(DGenericServiceImpl.java:49)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:71)
at com.sap.engine.services.webservices.espbase.client.dynamic.GenericServiceFactory.createService(GenericServiceFactory.java:91)
at com.sap.portal.connector.webservices.execution.functions.esp.InterfaceFactory.getDGenericService(InterfaceFactory.java:71)
at com.sap.portal.connector.web

0}#1#java.lang.reflect.InvocationTargetException
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:324)
at com.sap.guimachine.portalconnector.commandhandler.AbstractCommandService.invoke(AbstractCommandService.java:84)
at com.sap.guimachine.portalconnector.dispatcher.Dispatcher.handleCommandHandler(Dispatcher.java:175)
at com.sap.guimachine.portalconnector.dispatcher.Dispatcher.doContent(Dispatcher.java:126)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sappor