Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄营
datax-cloud
Commits
adf94f21
Commit
adf94f21
authored
Aug 26, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
d821a3ae
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ServiceExecuteServiceImpl.java
...t/integration/service/impl/ServiceExecuteServiceImpl.java
+4
-4
No files found.
datax-modules/data-market-service-parent/data-market-service-integration/src/main/java/cn/datax/service/data/market/integration/service/impl/ServiceExecuteServiceImpl.java
View file @
adf94f21
...
@@ -84,22 +84,22 @@ public class ServiceExecuteServiceImpl implements ServiceExecuteService {
...
@@ -84,22 +84,22 @@ public class ServiceExecuteServiceImpl implements ServiceExecuteService {
}
}
// http服务
// http服务
HttpMethod
httpMethod
=
HttpMethod
.
GET
;
HttpMethod
httpMethod
=
HttpMethod
.
GET
;
if
(
ReqMethod
.
POST
.
getDesc
().
equals
(
serviceIntegrationEntity
.
get
Service
HttpMethod
()))
{
if
(
ReqMethod
.
POST
.
getDesc
().
equals
(
serviceIntegrationEntity
.
get
HttpService
().
get
HttpMethod
()))
{
httpMethod
=
HttpMethod
.
POST
;
httpMethod
=
HttpMethod
.
POST
;
}
}
HttpEntity
<
MultiValueMap
<
String
,
Object
>>
httpEntity
=
new
HttpEntity
<>(
params
,
headers
);
HttpEntity
<
MultiValueMap
<
String
,
Object
>>
httpEntity
=
new
HttpEntity
<>(
params
,
headers
);
try
{
try
{
response
=
restTemplate
.
exchange
(
serviceIntegrationEntity
.
get
Service
Url
(),
httpMethod
,
httpEntity
,
String
.
class
);
response
=
restTemplate
.
exchange
(
serviceIntegrationEntity
.
get
HttpService
().
get
Url
(),
httpMethod
,
httpEntity
,
String
.
class
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
DataException
(
e
.
getMessage
());
throw
new
DataException
(
e
.
getMessage
());
}
}
}
else
if
(
ServiceType
.
WEBSERVICE
.
getKey
().
equals
(
serviceIntegrationEntity
.
getServiceType
()))
{
}
else
if
(
ServiceType
.
WEBSERVICE
.
getKey
().
equals
(
serviceIntegrationEntity
.
getServiceType
()))
{
// webservice服务
// webservice服务
headers
.
add
(
"SOAPAction"
,
serviceIntegrationEntity
.
get
ServiceTargetNamespace
()
+
serviceIntegrationEntity
.
getService
Method
());
headers
.
add
(
"SOAPAction"
,
serviceIntegrationEntity
.
get
WebService
().
getTargetNamespace
()
+
serviceIntegrationEntity
.
getWebService
().
get
Method
());
headers
.
add
(
"Content-Type"
,
"text/xml;charset=UTF-8"
);
headers
.
add
(
"Content-Type"
,
"text/xml;charset=UTF-8"
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
execute
.
getSoap
(),
headers
);
HttpEntity
<
String
>
entity
=
new
HttpEntity
<>(
execute
.
getSoap
(),
headers
);
try
{
try
{
response
=
restTemplate
.
exchange
(
serviceIntegrationEntity
.
get
Service
Wsdl
(),
HttpMethod
.
POST
,
entity
,
String
.
class
);
response
=
restTemplate
.
exchange
(
serviceIntegrationEntity
.
get
WebService
().
get
Wsdl
(),
HttpMethod
.
POST
,
entity
,
String
.
class
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
DataException
(
e
.
getMessage
());
throw
new
DataException
(
e
.
getMessage
());
}
}
...
...
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