473,385 Members | 1,973 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,385 software developers and data experts.

how to expose const's in my WSDL

hi
i have my web service. i want its WSDL to expose, in addition to all the
methods and structs, some const-s (ints).
can i do that?
thanks,
Ohad

--
visit my photography exhibition at
www.pbase.com/ohadr

Feb 23 '06 #1
4 1401
I looked for this one a while back. More specifically I was thinking
in the XSD, (probably what you mean too). I Never found a solution.
You can use a 1 element enumeration though...

"Ohad Redlich" wrote:
hi
i have my web service. i want its WSDL to expose, in addition to all the
methods and structs, some const-s (ints).
can i do that?
thanks,
Ohad

--
visit my photography exhibition at
www.pbase.com/ohadr

Mar 1 '06 #2
thanks!
--
visit my photography exhibition at
www.pbase.com/ohadr

"JRadical" wrote:
I looked for this one a while back. More specifically I was thinking
in the XSD, (probably what you mean too). I Never found a solution.
You can use a 1 element enumeration though...

"Ohad Redlich" wrote:
hi
i have my web service. i want its WSDL to expose, in addition to all the
methods and structs, some const-s (ints).
can i do that?
thanks,
Ohad

--
visit my photography exhibition at
www.pbase.com/ohadr

Mar 1 '06 #3
Hi Ohad,

A const is essentially a data value. Why would you want to represent a
data value in WSDL which is only about structure?

If it's because you want your web service to accept discrete values,
consider using an Enum.

Hope that helps, just shout if you have any questions...

Josh
http://www.thejoyofcode.com/

Mar 3 '06 #4
hei,
thanks.
yes, you r right. i wanted to accept discrete values. i will use enum, as u
say.
many thanks
Ohad
consider using an Enum.
--
visit my photography exhibition at
www.pbase.com/ohadr

"Josh Twist" wrote:
Hi Ohad,

A const is essentially a data value. Why would you want to represent a
data value in WSDL which is only about structure?

If it's because you want your web service to accept discrete values,
consider using an Enum.

Hope that helps, just shout if you have any questions...

Josh
http://www.thejoyofcode.com/

Mar 5 '06 #5

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

Similar topics

5
by: relaxedrob | last post by:
Hi All! I ran the following w3c example through my WSDL parser (SOA Editor from Cape Clear): http://www.w3.org/TR/wsdl#_rpcexample It told me that there were a bunch of erros about no...
0
by: Sonna Nach | last post by:
Hi All, I am writing a doc/lit web services, in which the elements under SOAPBody is unknown. That is, these two message are acceptable. 1. <SOAP-ENV:Body><Tag1>It is ok</Tag1></SOAP-ENV:Body>...
1
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or...
6
by: cipher | last post by:
I have some constant values in my web service that my client application will require. Having to keep server side and client side definitions insync is tedious. I am trying to do something like...
0
by: Elhanan | last post by:
hi.. i have a small Web Service which is consumed by dotnet application the webservice is located in 2 places. the first is my local tomcat, and the second is in websphere server. problems is...
0
by: Ohad Redlich | last post by:
hi i have my web service. i want its WSDL to expose, in addition to all the methods and structs, some const-s (ints). can i do that? thanks, Ohad -- visit my photography exhibition at...
9
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: ...
5
by: Nick K. | last post by:
I use wsdl.exe to generate client code to call a web service. The actual web service is generated with the BizTalk Web Services Publishing Wizard. I'm not sure this is particular to the BizTalk...
5
by: =?Utf-8?B?TWFuaQ==?= | last post by:
Hi, I have a webservice which uses a c# Dll,This Dll is a C# class library which contain few class . I am able to see the class when in the Web service but when i create a stubb class of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...

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.