unable to import metadata into webservice datastore

Hi,

In my job I am trying to consume wsdl. To achieve this I have created web service datastore. When I am trying to import wsdl metadata it is giving parse error.

I am able to consume same wsdl thru SOAPUI and .net but in data service XI3.1 it is giving error.

Screen shot of error is attached for reference. Please give me your precious suggestion

Thanks

Ritesh
web service error.JPG


ritesh.kumar07 (BOB member since 2008-11-05)

Manoj /wdaehn
please give me your suggestion.
When I am trying to import wsdl metadata into web service datastore it is giving following error.

An error occurred while importing metadata:%(BODI-1111469)Error parsing theinclude in the XML sent by the adapter to represent a function<Error importing XML Schema from file<adapter_schema_in.xcd>:<XML parser failed:Error<Schema Representation Constraint:Namespace’urn;Xchanging-Insurance-XIS-EAcc_Intf_Data_NotifyLoadType1:pyDefault’ is refernced withoutdeclaration>at line<5>,char<52>in<<xsd:schema xmlns:xsd=’http//www.w3.org/2001/XMLSchema”
Xmlns:tns=”urn:PegaRULES:SOAP:EaccountsServices:EAccountServiceClass”xmlns:diws=SAP Software Solutions | Business Applications and Technology>
<xsd:import namespace=’urn:PegaRULES:SOAP:EAccountsServices:EAccountServicesClass’
schemaLocation=’E:\Programe Files\Business Objects\BusinessObjects Data Services\ext\webservice\EAccountServicesClassServiceNotifyLoadNotifyLoad.xsd’/>

<xsd:element name=”NotifyLoad”>
xsd:complexType
xsd::sequence
<xsd:element ref=”tns:NotifyLoad”/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>>,file<’E:\Programe Files\Business Objects\BusinessObjects Data Services\ext\webservice\EAccountServicesClassServiceNotifyLoadNotifyLoad.xsd>.>.
Please validate your Schema using external schema validator(found at w3.org).>:.

I am attaching wsdl as txt file for reference.
Thanks

Ritesh
Test_wsdl.txt (2.0 KB)


ritesh.kumar07 (BOB member since 2008-11-05)

its expecting import for the other namesapce though its defined in the same WSDL for targetNameSpace urn:PegaRULES:SOAP:EAccountsServices:EAccountServicesClass

to workaround this error do the following
have also attached the modified WSDL try with that



test_wsdl_modified.txt (3.0 KB)


manoj_d (BOB member since 2009-01-02)

Thanks a lot manoj

Your modified wsdl is working fine. I am able to consume wsdl using data services XI3.1. I created web service type datastore and adapter type datastore both are working.

Actually we are planning to migrate to data services XI3.1. For testing purpose we installed data services on one of the machine. Our other environments e.g. dev, system test, UAT, production, are still having DI 11.7.3.0. These will be upgraded but can take time.

Due to constraint I am trying to consume wsdl in DI 11.7.3.0. To achieve this I have created web service adapter type datastore and successfully imported wsdl metadata. During run time job is giving following error.

Web Service client unable to invoke a Web Services server. Error: Couldn’t parse SOAP request envelope.

Please help me out as you did in the past.

If any Keystore Path concept is involve then please explain its steps.

Thanks & Regards

Ritesh


ritesh.kumar07 (BOB member since 2008-11-05)

if ceritifcate was not required in XI 3.1 for calling this web service, then it wouldn’t be required in 11.7, this error is not related to certificate or keystore

for 11.7.3 enable the trace for the WebService Adapter, and run the job, attach the Adapter trace, before enabling adapter trace do the following
stop the Adapter instance
rename/move the following adapter trace and error file
the trace and error file will be in %LINK_DIR%\adapters\log

start the Adapter
run the job
check the input soap message that is passed to the service, is the SOAP message correct ?


manoj_d (BOB member since 2009-01-02)

I have enabled adapter trace log as suggest by you. In adapter log folder there are three files SoapMessage.xml, WebService_error.txt, WebService_trace.txt. SOAP message is correct.

Please find attached WebService_trace.txt
WebService_trace.txt (30.0 KB)


ritesh.kumar07 (BOB member since 2008-11-05)

manoj did you get chance to look adapter trace log

Thanks

Ritesh


ritesh.kumar07 (BOB member since 2008-11-05)

nothing much in the trace, the error is thrown by the server, its not able to parse the message that DI adapter is sending

try calling the operation from SoapUI by sending the following message

<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:Bodyaa
</soapenv:Body>
</soapenv:Envelope>

since you are able to invoke this operation in 12.1 using Native web service, try enabling tracing for job and see the message its sending, do you see any difference ?

try calling this using Web Service Adapter in 12.1 and see if it works in there ?

the problem is most likely with the message, either the format is wrong or something is missing when its called from 11.7 java adapter


manoj_d (BOB member since 2009-01-02)

DI 11.7.3.0 and data services XI3.1 are Generating different SOAP XML

DI 11.7.3.0 SoapMessage.xml is as follows:

soapenv:BodyCompleted
</soapenv:Body>

Data Services XI3.1 SoapMessage.xml is as follows:

soapenv:Body<ns2:NotifyLoad xmlns:ns2=“urn:PegaRULES:SOAP:EAccountsServices:EAccountServicesClass”>Completed

</ns2:NotifyLoad></soapenv:Body>

These SOAPMessages XMLs are generated by DI itself. I am using just XML source to pass Completed message to web service.

How can i change SOAPMessages XML which is being populated by DI?


ritesh.kumar07 (BOB member since 2008-11-05)

you can’t change the message, let me check if something got fixed in later fix packs for 11.7.3

is the function schema in Adapter Datastore same in 11.7 and 12.1 ? you can check this in Designer, double click on the function name in datastore, it will display the innput and output schema for the function


manoj_d (BOB member since 2009-01-02)

Manoj I am using same wsdl and function schema is same in 11.7.3 and 12.1


ritesh.kumar07 (BOB member since 2008-11-05)

the schema’s are getting import differently in 117. and 12.1, in 12.1 the request element is inside NotifyLoad element, where as in 11.7 request is root element in the function input schema

some issue in 11.7 while importing the schema, let me check if this can be woraround by changing the WSDL


manoj_d (BOB member since 2009-01-02)

Manoj is it 11.7 bug or what else? did you get chance to find out any workaround ?

Thanks

Ritesh


ritesh.kumar07 (BOB member since 2008-11-05)

yes, this looks like a bug in 11.7, and got fixed in 12.0, hence it work fine in 12.1

you can try the following workaround
import the function in the datastore, export the Datastore ATL to a file
and search for following tags

true
false

[b]document[/b]

and modify the values to as below

false
true

[b]rpc[/b]

manoj_d (BOB member since 2009-01-02)

Thanks alot manoj.

I modified datastore ATL suggested by you and it is working.

Work around is working for 12.1.1.3 and 11.7.3.0. As you told there is a bug in 11.7.3.0 but why work around is required for 12.1.13

Work around for 12.1.1.3 was given by you. You gave me modified wsdl. Can you please let me know why 12.1.1.3 is not able to import correct wsdl metadata.

Regards
Ritesh


ritesh.kumar07 (BOB member since 2008-11-05)

Hello!

I have created a Datastore using the WebService connector.

It´s ok, I can see the function.

But now…how can I use it?

How to load data from it?

Thank you! :nopity:


Victor_BCN :es: (BOB member since 2009-09-15)

Hi,
I tried to extract our empolyee’s data via web services datastore but was unable to import the function from an existing wsdl. We have Data Services XI3.1. I was able to use the same wsdl through SoupUI but not the DS XI3.1. The error from the trace error log is attached.

After I read the posts with the similar problem in BOB, it was suggested either modifying the wsdl or upgrading the DS to XI3.2. Unfortunately, we cannot change the existing wsdl and also not going to upgrade the DS very soon.

Can you please help to resolve this issue?

Thanks in advance,
Xue
HRISWSDLError.txt (17.0 KB)


Xue Shi (BOB member since 2008-02-22)

Hello Everyone, I’m having the same issue but my message is different. (I’ve attached the screenshot). I’m using a webservice developed in Java. My service.xml service is attached too. Please heeelpp!!


leojhf (BOB member since 2013-04-09)

I don’t see the attachments, can you attach them again


manoj_d (BOB member since 2009-01-02)