Custom tool warning: Can not import wsdl: portType

6

I can not use ServiceReference after successfully importing. After executing the import, writing the class and using its methods in the compilation occurs the Warnings:

Warning 1

Custom tool warning: Cannot import wsdl:portType
Detail: The ' ' character, hexadecimal value 0x20, cannot be included in a name.
Parameter name: name
XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:sigiss_ws']/wsdl:portType[@name='WebService SigISSPortType']    C:\ProjetosVS\ClientWBAws\ClientWBAws\ClientWBAws\Service References\ServiceReferenceSigISS\Reference.svcmap    1   1   ClientWBAws

Warning 2

Custom tool warning: Cannot import wsdl:binding
Detail: There was an error importing a wsdl:portType that the wsdl:binding is dependent on.
XPath to wsdl:portType: //wsdl:definitions[@targetNamespace='urn:sigiss_ws']/wsdl:portType[@name='WebService SigISSPortType']
XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:sigiss_ws']/wsdl:binding[@name='WebService SigISSBinding']  C:\ProjetosVS\ClientWBAws\ClientWBAws\ClientWBAws\Service References\ServiceReferenceSigISS\Reference.svcmap    1   1   ClientWBAws

Warning 3

Custom tool warning: Cannot import wsdl:port
Detail: There was an error importing a wsdl:binding that the wsdl:port is dependent on.
XPath to wsdl:binding: //wsdl:definitions[@targetNamespace='urn:sigiss_ws']/wsdl:binding[@name='WebService SigISSBinding']
XPath to Error Source: //wsdl:definitions[@targetNamespace='urn:sigiss_ws']/wsdl:service[@name='WebService SigISS']/wsdl:port[@name='WebService SigISSPort']    C:\ProjetosVS\ClientWBAws\ClientWBAws\ClientWBAws\Service References\ServiceReferenceSigISS\Reference.svcmap    1   1   ClientWBAws

Error:

Error   4   Custom tool error: Failed to generate code for the service reference 'ServiceReferenceSigISS'.  Please check other error and warning messages for details.  C:\ProjetosVS\ClientWBAws\ClientWBAws\ClientWBAws\Service References\ServiceReferenceSigISS\Reference.svcmap    1   1   ClientWBAws

What should I do to fix this?

    
asked by anonymous 03.02.2014 / 19:19

3 answers

3

Without the file that you imported I can not give the complete solution to your problem, but I can help you explain the warnings.

Warning 1: says that you will not be able to import wsdl: port because there is a '' (blank space) in the type name, which can not exist.

Warnings 2, 3 and 4 are consequences of the first. 2 and 3 say that the types declared depend on the type of Warning 1 that could not be formed, so the latter can not. Finally Warning 4 that Build failed to run and you should see the above errors / warnings.

In short: remove the name space of the type you have great chances of getting rid of all these warnings.

    
04.02.2014 / 16:23
0

As Raul mentioned, the first Warning is a "(space) that is in a parameter called" name ".

Looking at the other details in the messages, highlight this section:

/wsdl:portType[@name='WebService SigISSPortType'] 

I do not know if you can change the <wsdl:portType> and put the name without a space:

<wsdl:portType name="WebService-SigISSPortTYpe" />
    
04.02.2014 / 19:28
0

Solved. The problem was in the way I declared the class.

    
04.02.2014 / 19:31