WCF / ASMX :: Custom Object Types And Empty WSDL

Dec 28, 2010

Using C#, ODP.NET and ASP.NET Web Services:

ClassA is a custom class generated from a "type" in oracle database.
ClassB is a custom class generated from a "table of type ClassA" in Oracle database.

The exposed service includes a login procedure which gets a username as input parameter and returns object B. Debugging the login procedure I can see that the data is retrieved from the database but not printed in the wsdl..


My ClassB definition is as follows:

public class ClassB : INullable, IOracleCustomType, IXmlSerializable

similar definition holds for ClassA as well. the generated wsdl is :

<? xml version="1.0" encoding="utf-8" ?>
<ClassB xmlns="http://tempuri/org" />

and no data printed out. What may be the problem?

View 3 Replies

Similar Messages:

WCF / ASMX :: Custom WSDL File Generation For Classic Web Services (not WCF)

Mar 5, 2010

I'm about a custom WSDL File Generation for a Classic ASP.NET XML Web Service.

The issue is I didn't find out how to specify mandatory parameters in my WSDL, since ASP.NET Web Services are generated on ?WSDL location, I thought I would do that from Web Method Annotations, but I found no issue.

Also I have been on a pose where the developer could hide WSDL Generation by specifying a custom WSDL Binding. But in my case I need to let other system access ?WSDL location with a Customized WSDL.

View 1 Replies

WCF / ASMX :: Null Reference Error When Assigning A Value Into Custom Type Array Via WSDL

Mar 2, 2011

I have a WSDL: [URL] (I have changed address location).

My code is for accessing data from SAP via WSDL; bind that to .NET control as well as sending data from .NET control to SAP via same WSDL.

The code is like below:


On the other way, When I am binding data with .net control at from load event then there is a no problem.

The code is like below:


View 9 Replies

WCF / ASMX :: Web Service - WebMethod Accepting Custom Object?

May 11, 2010

I have a custom class declared as follows (in vb.net)

<Serializable()> _
Public Class NumInfo
Public n As String
Public f As Integer
Public fc As char()
Public t As Integer
Public tc As char()
Private validFlag As Boolean = True
Public Sub New()
End Sub

I also have public properties(read/write) for all the public variables

End Class
In my service.asmx codebehind class I have a webmethod as follows:
<WebMethod> _
Public Function ConvertTo(ByVal info As NumInfo) As String
Return mbc(info)
'mbc is another function defined in my service.asmx "service" class
End Function

The problem is that when I start debugging it to test it, the page that I get does not contain any fields where I could input the values for the public fields of numInfo. How do I initialise the class? There is no "Invoke" button either. All I see are soap details as below:

The test form is only available for methods with primitive types as parameters. SOAP 1.1 The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /BaseConverter/BaseCon.asmx HTTP/1.1
Host: localhost
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://RohitServices.in/ConvertTo"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<ConvertTo xmlns="http://RohitServices.in/">

What am I doing wrong? For the record I tried replacing char() with string to see if it was the array causing problems but that didn't help either. I'm fairly new to web services. I tried replacing the custom object parameter with a primitive parameter just to check how things worked and it rendered a page with an input field and invoke button. I just can't seem to get it working with custom object.

View 2 Replies

WCF / ASMX :: Consuming Web Service Without Wsdl?

Nov 9, 2010

I need to access a web service. The WSDL is not available, even if I know everything about the service (url, method name and signature). I guess I could use HTTPRequest and HTTPResponse classes:HTTPResponse: should contains the XML Soap Response that I eventually parse.HTTPRequest: how to specify the service's and the method's parameters?

View 2 Replies

WCF / ASMX :: Web Service, Wsdl Error

Mar 22, 2010

I have had some web services running for some time now without any problems. Recently I tried to update the webservices in the project they run from but keep getting the error:
Metadata contains a reference that cannot be resolved: 'http://server/ErrorEmails.asmx?wsdl'

When I tried adding the web reference to the project from scratch I get he following error: 'Unable to download the following files from http://server/ErrorEmails.asmx?wsdl'

Now I can see what the problem is: the 'server' part of the url is pointing to the
internal server name instead of the actual url. I have not changed anything in the web services themselves or the projects which include them. If I copy the exact same webservice to a different folder on the server it can connect with no problem. This makes me believe its an issue with the directory on the server, however the server administrators say that this is not the case.

How has this error come up all of a sudden and what is the solution? .. I have read various forums on creating proxy classes, adding code to web config file etc but don't see why this should be done when it worked fine to start with and still works fine in a separate directory on the server!

View 3 Replies

WCF / ASMX :: Displaying MinOccur Tag In Wsdl Using Wcf?

Mar 11, 2011

I have created a simple WCF Service . After defining my Servicecontract and Datacontracts accordingly, I am unable to see my complextypes in the generated wsdl.like< element minOccurs='0' name='errorCode' type='xs:string'> there anything I am missing here? I cannot get my types to show up in the wsdl. i have been searching this for last one week

View 1 Replies

WCF / ASMX :: Attach Schema With Wsdl?

Jun 20, 2010

I want to develop a webservice which takes xml as parameter,but it takes only xml which is validated by schema.

I want to attach it with my wsdl so when client send the message data should be varified by schema .

View 1 Replies

Converting File From .wsdl To .asmx?

Jun 2, 2010

I have a file with .wsdl and i want .asmx file from that,Is there any way of converting file from .wsdl to .asmx .

View 1 Replies

WCF / ASMX :: Use WSDL File In C# Application?

Oct 1, 2010

this area.i received WSDL file from my client to access there database. But i dont know how to add the WSDL file to my Asp.net web application and How to use it. Please try to explaine me in detailed iam new .please try give me As soon as possible.

View 2 Replies

WCF / ASMX :: Difference Between Disco And WSDL?

Jun 27, 2010

the difference between Disco and WSDL? All my search attempts resulted in the information that both of them help client discover and use webservices. Need to know how they are different.

View 4 Replies

WCF / ASMX :: How To Create Soap Message From Wsdl

Feb 3, 2011

I am having one requirement, how to create soap message from wsdl file in .net.

View 1 Replies

WCF / ASMX :: How To Create Proxy Class Using Wsdl

Jul 19, 2010

in my application i m using webservice.without adding the webreference,i want to create proxy class using wsdl.

whats the steps for creating proxy class.

View 5 Replies

WCF / ASMX :: How To Display Element MinOccur Tag In Wsdl Using WCF

Mar 9, 2011

i have written a service using WCF ,if i see the WSDL file i am not able to see the Minoccurs an name tags,i want to show tha tag in WSDL for that what settings do i need to change in my program.

IDemoWCF.cs[ServiceContract]public interface IDemoWCF{ [OperationContract] void DoWork(); [OperationContract] int add(int a, int b);}DemoWCF.cs : public class DemoWCF : IDemoWCF{ public int add(int a,int b) { int c = a + b; return c; }web.config is :<system.serviceModel> <behaviors> <serviceBehaviors> <behavior name="ServiceBehavior"> <serviceMetadata httpGetEnabled="True"/> <serviceDebug includeExceptionDetailInFaults="false"/> </behavior> </serviceBehaviors> </behaviors> <services> <service behaviorConfiguration="ServiceBehavior" name="DemoWCF"> <endpoint address="" binding="basicHttpBinding" contract="IDemoWCF"> </endpoint> </service> </services> </system.serviceModel>}

View 1 Replies

WCF / ASMX :: Publish A Web Service From A Wsdl File

Aug 8, 2010

I have a wsdl file which are the definition of several methods of the web service associated . I want to create this web service in order to consume it through a Java web service client.How i could do this?

View 1 Replies

WCF / ASMX :: WSDL Not Showing Full Definition?

Sep 9, 2010

I have a webservice that returns a List<T> of objects.

One of the object properties is another list of objects (Individuals).

In the WSDL file that gets generated, it shows all the properties of the object in the main list, but it doesn't show the properties of the Individuals in the second list.

All it shows is this:

<Individual xsi:nil="true" />
<Individual xsi:nil="true" />

So it shows that there is a property called IndividualList and it knows that it contains Individual objects but I'd like it to list the properties of the Individual object as well.

View 1 Replies

WCF / ASMX :: Library To Parser WSDL Files

Sep 16, 2010

I am looking for some .NET library that will help me to parse WSDL files. By "parsing" I mean extracting web service functions' info, associating functions with object that they use.

View 1 Replies

WCF / ASMX :: Removing Tempuri.org From WSDL For A Web Service

Dec 7, 2010

I was just wanting to "cleanup" my WSDL for my .NET 4.0 WCF Web Service and I have most references to tempuri.org changed, except two.

I have added


But, my WSDL still has a reference to

<wsdl:definitions ... xmlns:i0="http://tempuri.org/" ...


<wsdl:import namespace="http://tempuri.org/" ...

View 2 Replies

Iterate Through A Dictionary Object That Can Contain A Object And Enum Types

Jul 20, 2010

Can you iterate through a dictionary object that can contain a object and enum types

foreach(Dictionary<someObject, enumType> myDic in myObjects) {
if(enumType.myType == enumType.Type) {
do something here...


View 1 Replies

WCF / ASMX :: How To Create Soap Envelope (xml Request) From Wsdl

Feb 3, 2011

How to create soap envelope (xml request) from wsdl.

View 2 Replies

WCF / ASMX :: WSDL Made The Call To Web Services But Returned Nothing

Oct 26, 2010

Provided wsdl from link below:


I've been given merely a wsdl above from client, without any further information given, to make a call using c# code but i added as web reference, used the codes below and the client side detected my request and they've returned us proper format xml too, but i cant retrieve it in the string array from the method returned. the "stringset" has became null instead of array[10]. Can anyone give a hint what kind of web service call is it, since it is not using the simple and classic way to invoke?

static void Main(string[] args)
//added web reference for wsdl as poccrm
string[] stringset = new string[10];
poccrm.poclib caller = new ConsoleApplication1.poccrm.poclib();
poccrm.SE1I2001 callerItem = new poccrm.SE1I2001();
callerItem.AcctNo = "0010241000007914";
callerItem.TransNo = "12345678901234567890";
callerItem.StartDate = "20-01-2010";
stringset = caller.SE1I2001(callerItem); //here i get null for stringset, but client received the request and returned us value
//same result even I use wsdl.exe converted it to a class file
string[] stringset = new string[10];
poclib caller = new poclib();
SU1I1001 callerItem = new SU1I1001();
callerItem.AcctNo = "0010029004000370";
callerItem.transno = "12345678901234567890";
stringset = caller.SU1I1001(callerItem);

View 4 Replies

WCF / ASMX :: Generate Web Service From KEGG Wsdl File In C#

Dec 6, 2010

I would like to read the WSDL file from KEGG [URL] in order to use the


View 2 Replies

WCF / ASMX :: Generating Service From Wsdl (SvcUtil Not Working)?

Mar 30, 2011

Im trying to generate a service based on the wsdls ive been given hitting svcutil directly.. try as I might I cannot get it to export everything correctly.. it ends up not including chunks of info from the wsdl files..

svcutil /n:"*, TestProject.Web" CreateApplication_Responder.2.3.0r2.wsdl DeclareDetermination_Responder.2.3.0r2.wsdl ..ivmdeclareDetermination*.xsd ..ivmcreateApplication*.xsd ..ivss*.xsd ..ivcore*.xsd ..ivdtqdt*.xsd /mc /ser:Auto
/importXmlTypes /tcv:Version35 /s

View 1 Replies

WCF / ASMX :: Return A Data Record From A Webservice (wsdl)?

Aug 23, 2010

vs2010, .NET 4.0I have a webmethod which I want to return a data record (for example: name, surename, address, age, zip etc)I wonder how to accomplish this. I think the solution is about creating an object which contains all the records serialized. And then the webmethod returns this serialized object. I'm not 100% sure how to accomplish this, if some of you good provide me with some tips, tutorial or link to an article explaining it, that would be great

View 1 Replies

WCF / ASMX :: Wsdl Code Generation Xmlroot Element Absent?

Jul 11, 2010

I am generating my service code by reading wsdl and client proxy as well using wsdl.exe.

I did it successfully but when I create request object and try to verify with schema it gives me error root element is not found.

I use same schema which I have used in my wsdl document and using xsd.exe I generate my objects.

I found There is XmlRootElement is absent when I mention it no my parent type it works fine.

Problem is Why it's not generating when I used wsdl.exe to generate code.

View 3 Replies

Copyrights 2005-15 www.BigResource.com, All rights reserved