473,881 Members | 1,545 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 myEmployeeServi ce.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 'PortType1Bindi ng' from namespace
'http://com.tony.wsdl.t esting/CClear.wsdl'.
- Unable to import operation 'SubmitEmployee Operation'.
- 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:definitio ns
name="SimpleEmp loyee"
targetNamespace ="http://com.tony.wsdl.t esting/CClear.wsdl"
xmlns:import1=" http://MyFirstMessagin g.employee"
xmlns:soap="htt p://schemas.xmlsoap .org/wsdl/soap/"
xmlns:tns="http ://com.tony.wsdl.t esting/CClear.wsdl"
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/"
xmlns:xsd="http ://www.w3.org/2001/XMLSchema">
<wsdl:documenta tion
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">Created using Cape Clear
Studio SOA Editor - http://www.capeclear.c om</wsdl:documentat ion>
<wsdl:types>
<xs:schema
targetNamespace ="http://MyFirstMessagin g.employee"
xmlns="http://MyFirstMessagin g.employee"
xmlns:b="http://schemas.microso ft.com/BizTalk/2003"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Employee" >
<xs:annotatio n>
<xs:appinfo>
<b:properties >
<b:property
distinguished=" true"
xpath="/*[local-name()='Employe e' and
namespace-uri()='http://MyFirstMessagin g.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:positi veInteger"
use="required"/>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="SubmitEmp loyeeResponse">
<wsdl:part name="empRespon se" type="xsd:strin g"/>
</wsdl:message>
<wsdl:message name="SubmitEmp loyee">
<wsdl:documenta tion
xmlns:wsdl="htt p://schemas.xmlsoap .org/wsdl/">Employee Submission
Mechanism</wsdl:documentat ion>
<wsdl:part element="import 1:Employee" name="p_Emp"/>
</wsdl:message>
<wsdl:portTyp e name="EmployeeP ort">
<wsdl:operati on name="SubmitEmp loyeeOperation" >
<wsdl:input message="tns:Su bmitEmployee"/>
<wsdl:output message="tns:Su bmitEmployeeRes ponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PortType1 Binding" type="tns:Emplo yeePort">
<soap:binding style="document "
transport="http ://schemas.xmlsoap .org/soap/http"/>
<wsdl:operati on name="SubmitEmp loyeeOperation" >
<soap:operati on

soapAction="cap econnect::Emplo yeePort#SubmitE mployeeOperatio n"
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="MyEmploye eService">
<wsdl:port binding="tns:Po rtType1Binding" name="Port1">
<soap:address
location="http://localhost:8000/ccx/MyEmployeeServi ce"/>
</wsdl:port>
</wsdl:service>
</wsdl:definition s>
Nov 23 '05 #1
0 1035

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

Similar topics

4
1317
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 request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. The stack trace is just a lot of system class stuff with no real explanation of where the error is. Wondering the...
10
1801
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 the code. Exception Details: System.InvalidCastException: Specified cast is not valid. Line 176. Source Error:
5
3447
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 5), but fails on IIS 6 running on a Win2003 server. The web uses Pages derived from a custom class I wrote (which itself derives from Page) to provide some common functionality. The Page_Load handler the failing webpage starts out like this: ...
3
10522
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 columns is a template column where I'd like to evaluate the data brought back from the db and populate the column with a "Y" or "N" depending on the value in the db. Here is the code that is causing it as well as the error (below). ERROR...
6
6433
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 AtRiskCode, String Comment) Code for UpdateProject(String Project, String AtRiskCode, String Comment) is:
2
1633
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 start off the connection: Public Sub Main() Const PortNumber As Integer = 8022 Dim tcpListener As New TcpListener(PortNumber) tcpListener.Start()
0
1401
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 web application to use SQL Server to store the Membership database using aspnet_regsql.exe and have successfully opened the Web Config Tool. Then, I create a role, and go look in the SQL Server aspnet_roles table, and there is the role. All...
2
3535
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 current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidCastException: Specified cast is not valid. Source Error: Line 44: while...
1
1399
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 Access with a table "Affiliation". Both contain four columns/fields. I am writing an application to pull some data from Table1's affiliation table and inserting it into Table2's affiliation table. The datatypes are all the same for all four fields...
27
2930
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 invalid. at line: int low = (int)arrm;
0
9776
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10720
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10819
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9555
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7953
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
7113
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5781
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
4196
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3225
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.