Video Screencast Help
Symantec to Separate Into Two Focused, Industry-Leading Technology Companies. Learn more.

Error Trying to Connect to Web Service

Created: 18 Sep 2012 • Updated: 21 Sep 2012 | 11 comments
This issue has been solved. See solution.

Has anyone encountered this error when trying to connect to a web service and found a way to fix it?

 

Comments 11 CommentsJump to latest comment

reecardo's picture

Can you double click the error and provide the entire text? It looks cut off.

Aryanos's picture

Sorry, I uploaded a pic with the full error visible

I like my beats fast and my bass down low

reecardo's picture

Some quick questions... did you use a WSDL for this, and if so, can you provide it as well?

Also can you attach the generated source of the component? (Click Advanced... Save source code)

Aryanos's picture

I do, it's been attached. This web service was created in the SAP application as I'm working on projects that integrate with it. I've been able to connect to other ones but for some reason this one throws the error.

AttachmentSize
Z_BAPI_SD_UPDATE_PARTNERS3.zip 2.67 KB

I like my beats fast and my bass down low

reecardo's picture

OK, I'm able to compile the component with the attached WSDL. Try running Find Duplicated Types in the Generators Managment window (right click on the Generators root, select Find Duplicated Types)

If any duplicates are indicated, you can expand the generator output, then right click - Remove the duplicate.

 

Aryanos's picture

Did you have any issues compiling it or was it a straight compile? It seems weird that you're able to do it and Anaman and myself have issues.

I like my beats fast and my bass down low

AnaMan's picture

Did you remove the suffix "Component" from the Name pattern field at second step of the wizard?

I've noticed that WSDL contains a type definition named Z_BAPI_SD_UPDATE_PARTNERS for which a class is generated. But this name is also used for component's class name with default suffix "Component". When you remove this suffix class name conflict appears. I got similar error but not exactly the same.

 

SOLUTION
Aryanos's picture

It tried again leaving the Component suffix in there again and was able to compile it without any errors. It must be in the way the SAP guys are building the web services that needs that in there. Thanks a lot for you help with this one as it really was really taking away my project time troubleshooting this.

I like my beats fast and my bass down low

Aryanos's picture

Hey Guys,

Thanks for the help. I'm starting to see this error more and more as I try to connect to the SAP web services and here is an example of another one.

reecardo, which one would file would I delete as it's the error message from below for this particular one. 

Anaman, yep I always remove the Component from the name pattern. In the past I would always have one WS per integration as I was told the Web Services connectors didn't work well when used in a multi-container. Is it ok to create web services using the multi-container now?

Names error in namespace 'BAPI_INCOMINGINVOICE_RELEASDynamicService'. Error :  name 'BAPI_INCOMINGINVOICE_RELEASE' is duplicated

WS.png

I like my beats fast and my bass down low

AnaMan's picture

But you havn't written if you try to compile the library with not deleted "Component" suffix (or any other)?

It seems to be crucial in this case.

Aryanos's picture

Yes I tried leaving it in but it won't compile either with the same error message. I've asked the SAP team to take a look at these two and see if there was anything done differently.

I like my beats fast and my bass down low