|
Home > Archive > BizTalk Server Orchestration > April 2004 > No Schema when consuming a WebService?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
No Schema when consuming a WebService?
|
|
| Franky 2004-04-29, 8:36 am |
| Hi Folks!
When I'm adding a WebRefernce to a WebService, BT should automatically
create a Refernce.xsd - With this schema file i should be able to create a
Message and make a mapping.
But VS only creates the following files:
- Reference.map
- Reference.odx
- Service1.disco
- Service1.wsdl
The file Reference\Refernce.xsd is missing, even if i right click on
Reference.map and select "Regenerate BizTalk Files"
Thanks for help,
best regards!
| |
|
| I am having the same problem. I think that this file is only generated for
arguments that are complex message types. My problem is that I need to
initialize a correlation based on a string used as a parameter to the method
call and I cannot figure out how.
DL
"Franky" <mail@mail.com> wrote in message
news:Ov%23afLeLEHA.268@TK2MSFTNGP10.phx.gbl...
> Hi Folks!
>
> When I'm adding a WebRefernce to a WebService, BT should automatically
> create a Refernce.xsd - With this schema file i should be able to create a
> Message and make a mapping.
>
> But VS only creates the following files:
>
> - Reference.map
> - Reference.odx
> - Service1.disco
> - Service1.wsdl
>
> The file Reference\Refernce.xsd is missing, even if i right click on
> Reference.map and select "Regenerate BizTalk Files"
>
> Thanks for help,
> best regards!
>
>
| |
| Matt Milner 2004-04-29, 10:36 am |
| Yes, you should only see the reference XSD if there are types that need to
be described (i.e. not simple types). If you have complex types and still
don't see it, try to highlight your project and click the "show all files"
button at the top of the solution explorer.
Matt
"DL" <dan@dont.spam.me.com> wrote in message
news:uM32l7eLEHA.2068@TK2MSFTNGP11.phx.gbl...
> I am having the same problem. I think that this file is only generated
for
> arguments that are complex message types. My problem is that I need to
> initialize a correlation based on a string used as a parameter to the
method
> call and I cannot figure out how.
>
> DL
>
> "Franky" <mail@mail.com> wrote in message
> news:Ov%23afLeLEHA.268@TK2MSFTNGP10.phx.gbl...
a[vbcol=seagreen]
>
>
| |
|
| Thanks for the confirmation, Matt.
Further to my question, then. How can I initialize a correlation with a
simple type on a web service call? I can't figure out how to specify that
argument "x" should initialize property "y" in the correlation.
Dan
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:O$QPWbfLEHA.556@tk2msftngp13.phx.gbl...
> Yes, you should only see the reference XSD if there are types that need to
> be described (i.e. not simple types). If you have complex types and still
> don't see it, try to highlight your project and click the "show all files"
> button at the top of the solution explorer.
>
> Matt
>
>
> "DL" <dan@dont.spam.me.com> wrote in message
> news:uM32l7eLEHA.2068@TK2MSFTNGP11.phx.gbl...
> for
> method
create[vbcol=seagreen]
> a
>
>
| |
| Dominik Amon 2004-04-29, 1:37 pm |
| Hi Dan,
> Further to my question, then. How can I initialize a correlation with a
> simple type on a web service call? I can't figure out how to specify that
> argument "x" should initialize property "y" in the correlation.
i guess it would be better to start a seperate thread with your question!
The Q is "No Schema when consuming a WebService?"
I do have the same problem!
If i use only simple types, like Franky, i'm not able to map promoted fields
into a new message, because there is no schema file for the WebService
methods. So the parameters arn't accessable for my orchestration :-(
dominik
| |
| Matt Milner 2004-04-29, 2:37 pm |
| In regards to the last question (dominiks), you can't use a map for this
simple type, but you can use a message assignment shape and then set the
values on the request message using "." notation.
For example:
myWebRequestMessage.variableName = myOriginalMessage(mypromotedproperty);
I'm not sure how you can promote a property from a web service that does not
have a schema.
Matt
"Dominik Amon" <dominik_newsgroup@linuxmail.org> wrote in message
news:uguaOvgLEHA.1484@tk2msftngp13.phx.gbl...
> Hi Dan,
>
that[vbcol=seagreen]
>
> i guess it would be better to start a seperate thread with your question!
>
> The Q is "No Schema when consuming a WebService?"
> I do have the same problem!
> If i use only simple types, like Franky, i'm not able to map promoted
fields
> into a new message, because there is no schema file for the WebService
> methods. So the parameters arn't accessable for my orchestration :-(
>
> dominik
>
>
>
| |
| Dominik Amon 2004-04-29, 4:36 pm |
| Hi Matt!
> myWebRequestMessage.variableName = myOriginalMessage(mypromotedproperty);
Thanks i'll try this in my office soon...
> I'm not sure how you can promote a property from a web service that does
not
> have a schema.
The interessting thing is that in a sample project or in the SDK, there IS a
schema file.
The funny thing is that a collage created this sample project and it worked,
he tried to
do the same thing again but no schema?
Well i'll try it tomorrow and share my results
dominik
> "Dominik Amon" <dominik_newsgroup@linuxmail.org> wrote in message
> news:uguaOvgLEHA.1484@tk2msftngp13.phx.gbl...
a[vbcol=seagreen]
> that
question![vbcol=seagreen]
> fields
>
>
| |
| Dominik Amon 2004-04-30, 2:36 am |
| Hi again
[vbcol=seagreen]
myOriginalMessage(mypromotedproperty);
My problem is the mapping. When i create an Instance of a Message, i can't
use the "Transform Configuration". Because in Destination, there is
"Variable Name" and "Message Part type" because of the missing Schema, i
can't select the field :-(
dominik
| |
| Dominik Amon 2004-04-30, 12:37 pm |
| Hi again,
For those who have the same problem (Can't map [simple] WebService
parameter, because of missing schema file):
I still don't know how i can make a mapping with a web service, that's using
primitives as parameters (such as string, int, boolean).
I created two objects:
* WsRequestMessage
* WsResponseMessage
My function looks like
public WsResponseMessage doSomething(WsRequestMessage request){
WsResponseMessage response = new WsResponseMessage();
response.Field1 = "abc";
response.Field2 = request.Field1 + request.Field2;
return response;
}
I defined the fields i wanted and added the new WebService in Biztalk. Now
BT created a schema file automatically, which i could use for mapping.
So remember: Don't created simple WebService, create a more complex one, and
it will work :-)
dominik
Mit freundlichen Gruessen,
Dominik Amon
www.amon.cc
|
|
|
|
|