Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
a04361f9
Commit
a04361f9
authored
Apr 22, 2016
by
Hans Leidekker
Committed by
Alexandre Julliard
Apr 22, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webservices: Implement WsCreateServiceProxyFromTemplate.
Signed-off-by:
Hans Leidekker
<
hans@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7c60c016
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
1 deletion
+61
-1
proxy.c
dlls/webservices/proxy.c
+60
-0
webservices.spec
dlls/webservices/webservices.spec
+1
-1
No files found.
dlls/webservices/proxy.c
View file @
a04361f9
...
@@ -122,6 +122,66 @@ HRESULT WINAPI WsCreateServiceProxy( const WS_CHANNEL_TYPE type, const WS_CHANNE
...
@@ -122,6 +122,66 @@ HRESULT WINAPI WsCreateServiceProxy( const WS_CHANNEL_TYPE type, const WS_CHANNE
}
}
/**************************************************************************
/**************************************************************************
* WsCreateServiceProxyFromTemplate [webservices.@]
*/
HRESULT
WINAPI
WsCreateServiceProxyFromTemplate
(
WS_CHANNEL_TYPE
channel_type
,
const
WS_PROXY_PROPERTY
*
properties
,
const
ULONG
count
,
WS_BINDING_TEMPLATE_TYPE
type
,
void
*
value
,
ULONG
size
,
const
void
*
desc
,
ULONG
desc_size
,
WS_SERVICE_PROXY
**
handle
,
WS_ERROR
*
error
)
{
const
WS_CHANNEL_PROPERTY
*
channel_props
=
NULL
;
ULONG
channel_props_count
=
0
;
WS_CHANNEL_BINDING
binding
;
struct
channel
*
channel
;
HRESULT
hr
;
TRACE
(
"%u %p %u %u %p %u %p %u %p %p
\n
"
,
channel_type
,
properties
,
count
,
type
,
value
,
size
,
desc
,
desc_size
,
handle
,
error
);
if
(
error
)
FIXME
(
"ignoring error parameter
\n
"
);
if
(
!
desc
||
!
handle
)
return
E_INVALIDARG
;
FIXME
(
"ignoring description
\n
"
);
switch
(
type
)
{
case
WS_HTTP_BINDING_TEMPLATE_TYPE
:
{
WS_HTTP_BINDING_TEMPLATE
*
http
=
value
;
if
(
http
)
{
channel_props
=
http
->
channelProperties
.
properties
;
channel_props_count
=
http
->
channelProperties
.
propertyCount
;
}
binding
=
WS_HTTP_CHANNEL_BINDING
;
break
;
}
case
WS_HTTP_SSL_BINDING_TEMPLATE_TYPE
:
{
WS_HTTP_SSL_BINDING_TEMPLATE
*
https
=
value
;
if
(
https
)
{
channel_props
=
https
->
channelProperties
.
properties
;
channel_props_count
=
https
->
channelProperties
.
propertyCount
;
}
binding
=
WS_HTTP_CHANNEL_BINDING
;
break
;
}
default:
FIXME
(
"template type %u not implemented
\n
"
,
type
);
return
E_NOTIMPL
;
}
if
((
hr
=
create_channel
(
type
,
binding
,
channel_props
,
channel_props_count
,
&
channel
))
!=
S_OK
)
return
hr
;
if
((
hr
=
create_proxy
(
channel
,
properties
,
count
,
handle
))
!=
S_OK
)
free_channel
(
channel
);
return
hr
;
}
/**************************************************************************
* WsFreeServiceProxy [webservices.@]
* WsFreeServiceProxy [webservices.@]
*/
*/
void
WINAPI
WsFreeServiceProxy
(
WS_SERVICE_PROXY
*
handle
)
void
WINAPI
WsFreeServiceProxy
(
WS_SERVICE_PROXY
*
handle
)
...
...
dlls/webservices/webservices.spec
View file @
a04361f9
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
@ stub WsCreateServiceEndpointFromTemplate
@ stub WsCreateServiceEndpointFromTemplate
@ stub WsCreateServiceHost
@ stub WsCreateServiceHost
@ stdcall WsCreateServiceProxy(long long ptr ptr long ptr long ptr ptr)
@ stdcall WsCreateServiceProxy(long long ptr ptr long ptr long ptr ptr)
@ st
ub WsCreateServiceProxyFromTemplate
@ st
dcall WsCreateServiceProxyFromTemplate(long ptr long long ptr long ptr long ptr ptr)
@ stdcall WsCreateWriter(ptr long ptr ptr)
@ stdcall WsCreateWriter(ptr long ptr ptr)
@ stdcall WsCreateXmlBuffer(ptr ptr long ptr ptr)
@ stdcall WsCreateXmlBuffer(ptr ptr long ptr ptr)
@ stub WsCreateXmlSecurityToken
@ stub WsCreateXmlSecurityToken
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment