Author Message
Ronny.Lewandowski
Joined: Oct 24, 2018
Messages: 6
Offline
I tried to create the stubs from the wsdl of SystemManagementService but get errors.

What I did:
Downloading the wsdl:
https://myaesserver/smsxml/SystemManagementService.php?wsdl

Opened a visual studio development command prompt as admin.
called wsdl like so:
wsdl /language:CS /out:C:\Users\lewandowskir\Downloads\Avaya\ /protocol:SOAP /serverinterface D:\Development\Avaya\SystemManagementService.wsdl

Error: Unable to import binding 'SystemManagementBinding' from namespace 'http://xml.avaya.com/ws/SystemManagementService/2008/07/01'.
- Unable to import operation 'submitRequest'.
- The datatype 'http://xml.avaya.com/sms:modelChoices' is missing.

If I try to create the stubs from the wsdl which is included in the SDK (smssvc-sdk-7.1.0.0.0.235) I get also errors:

Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2028, R2029: A DESCRIPTION using the WSDL namespace and the WSDL SOAP binding namespace MUST be valid according to the XML Schemas found at http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd and http:/
- Warning: The 'location' attribute is invalid - The value 'http://{SERVER_IP_ADDRESS}/smsxml/SystemManagementService.php' is invalid according to its datatype 'http://www.w3.org/2001/XMLSchema:a
value. Line 97, position 22.

What's wrong here?
Any help appreciated... - Thx
Smoroffko
Joined: Nov 5, 2015
Messages: 22
Offline
Instead of downloading the wsdl I add it as a Web Reference in Visual Studio. I find this to be easier and way more efficient. Have you tried that?
Ronny.Lewandowski
Joined: Oct 24, 2018
Messages: 6
Offline
Yes, I tried that. Getting following error:

The HTML document does not contain Web service discovery information.
Metadata contains a reference that cannot be resolved: 'https://*****l/smsxml/SystemManagementService.php'.
The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Basic realm="SMS"'.
The remote server returned an error: (401) Unauthorized.
If the service is defined in the current solution, try building the solution and adding the service reference again.
Smoroffko
Joined: Nov 5, 2015
Messages: 22
Offline
When you Right click on the Project and click "Add Service Reference":

Do you click on "Advanced" (lower left) then click on "Add Web Reference..." on the bottom

Then in the URL put https://xx.xx.xx.xx/smsxml/SystemManagementService.wsdl

I get a Security Alert that I have to hit "Yes" through

Then it should load and you rename it and click on "Add Reference"

When I was starting out I wasn't adding as a Web Reference and instead adding as a standard Service Reference. I also have issues where my project must be saved on a local drive as in my Desktop or C:\ but it would not work when on a shared drive. However, I'm not sure if that's related to my companies network setup.
Ronny.Lewandowski
Joined: Oct 24, 2018
Messages: 6
Offline
I also tried that and I am getting:

SystemMangementService
Hi there, this is a Web Service!

Perhaps there will be a form for invoking the service here…

And under 'Web Services found at this url:
The HTML document does not contain Web service discovery information.


Smoroffko
Joined: Nov 5, 2015
Messages: 22
Offline
What is the URL you're using? In your original post you put

https://myaesserver/smsxml/SystemManagementService.php?wsdl


Have you tried removing the .php and using ".wsdl"

https://myaesserver/smsxml/SystemManagementService.wsdl
Ronny.Lewandowski
Joined: Oct 24, 2018
Messages: 6
Offline
yes, I tried this also. Same error.
Following version is installed: aesvcs-sms-7.1.1.0.0.51-0.noarch

I am also wondering (when downloading the wsdl) that the protocoll of location Attribute is http but the Server is runinng https
<soapbind:address location="http://****/smsxml/SystemManagementService.php"/>


Any other idea?
Smoroffko
Joined: Nov 5, 2015
Messages: 22
Offline
Do you need to make any configurations to your AES server?

Also, have you tried using http instead of https in the Web Reference addition dialog?

http://xxxx/smsxml/SystemManagementService.wsdl


I'm trying to think of issues I've had in the past but there are a lot of different factors.
Go to:   
Mobile view