473,320 Members | 1,876 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Specified Cast is Invalid

Hi,
can anyone shed some light on an issue I have encountered. I have used a
tool (Cape Clear) to generate a WSDL file for me. When I use the WSDL2Java
tool provided by apache axis it creates proxies without any issues. When I
use WSDL.exe I get the following:

E:\XML\Schemas\Cape Clear>wsdl /server myEmployeeService.wsdl
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 1.1.4322.573]
Copyright (C) Microsoft Corporation 1998-2002. All rights reserved.

Error: Unable to import binding 'PortType1Binding' from namespace
'http://com.tony.wsdl.testing/CClear.wsdl'.
- Unable to import operation 'SubmitEmployeeOperation'.
- Specified cast is not valid.

If you would like more help, please type "wsdl /?".

I cannot see anything obvious in the WSDL. Any help greatly appreciated.
WSDL below:

<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions
name="SimpleEmployee"
targetNamespace="http://com.tony.wsdl.testing/CClear.wsdl"
xmlns:import1="http://MyFirstMessaging.employee"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://com.tony.wsdl.testing/CClear.wsdl"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Created using Cape Clear
Studio SOA Editor - http://www.capeclear.com</wsdl:documentation>
<wsdl:types>
<xs:schema
targetNamespace="http://MyFirstMessaging.employee"
xmlns="http://MyFirstMessaging.employee"
xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Employee">
<xs:annotation>
<xs:appinfo>
<b:properties>
<b:property
distinguished="true"
xpath="/*[local-name()='Employee' and
namespace-uri()='http://MyFirstMessaging.employee']/@*[local-name()='Grade']
"/>
</b:properties>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="Name">
<xs:complexType>
<xs:sequence>
<xs:element name="First"
type="xs:string"/>
<xs:element name="Middle"
type="xs:string"/>
<xs:element name="Last"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Personal">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="SSN"
nillable="true" type="xs:string"/>
<xs:element name="DOB"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Grade" type="xs:positiveInteger"
use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="SubmitEmployeeResponse">
<wsdl:part name="empResponse" type="xsd:string"/>
</wsdl:message>
<wsdl:message name="SubmitEmployee">
<wsdl:documentation
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Employee Submission
Mechanism</wsdl:documentation>
<wsdl:part element="import1:Employee" name="p_Emp"/>
</wsdl:message>
<wsdl:portType name="EmployeePort">
<wsdl:operation name="SubmitEmployeeOperation">
<wsdl:input message="tns:SubmitEmployee"/>
<wsdl:output message="tns:SubmitEmployeeResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PortType1Binding" type="tns:EmployeePort">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="SubmitEmployeeOperation">
<soap:operation

soapAction="capeconnect::EmployeePort#SubmitEmploy eeOperation"
style="document"/>
<wsdl:input>
<soap:body parts="p_Emp" use="literal"/>
</wsdl:input>
<wsdl:output>
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="MyEmployeeService">
<wsdl:port binding="tns:PortType1Binding" name="Port1">
<soap:address
location="http://localhost:8000/ccx/MyEmployeeService"/>
</wsdl:port>
</wsdl:service>
</wsdl:definitions>
Nov 23 '05 #1
0 1244

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: .Net Sports | last post by:
I'm getting a "Specified cast is not valid" error that does not point to the line with the code in error, but instead :An unhandled exception was generated during the execution of the current web...
10
by: Arjen | last post by:
Hello, Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in...
5
by: Nick Flandry | last post by:
I'm running into an Invalid Cast Exception on an ASP.NET application that runs fine in my development environment (Win2K server running IIS 5) and a test environment (also Win2K server running IIS...
3
by: PK9 | last post by:
I am looking for assistance in pinpointing the cause of the following exception. I am getting a "Specified Cast is not valid" exception on my page. I am trying to populate a datagrid. One of my...
6
by: Biva | last post by:
Hello All, Please help. I get the following error from my webpage: System.InvalidCastException: Specified cast is not valid. at Time.MaintAtRiskProjects.UpdateProject(String Project, String...
2
by: James | last post by:
I'm a newbie to vb.net, and classes were something I never played with in "standard" vb, but... Basically,part of my program comprises of some tcp/ip stuff, and I used the following code to...
0
by: df | last post by:
I'm seeing a strange problem in the Web App config tool: After creating a role and a user, going back to the Security tab home page, I get a "Specified cast is not valid" error. I've set up my...
2
by: Kashiefah | last post by:
Hi, I keep on receiving this error when I click on the edit email link from the datagrid:Specified cast is not valid. Description: An unhandled exception occurred during the execution of the...
1
by: one320b | last post by:
I've read through numerous postings by other users here but was not able to find the solution to my issue. It's probably a simple one, but it's racking me at this point. I have two databases in MS...
27
by: arial | last post by:
Hi I am new to programming. learning c# , asp.net. write a simple program: to get the id from database and save it to arraylist to find the max(id). and getting exception: Specified cast is...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.